tests: work on writing tests for console functionality

This commit is contained in:
Stevan Freeborn committed 2025-03-10 20:48:19 -05:00
1 parent 69a79e297d
commit 5c2059cfa9
3 files changed
+80 -6

No files matched your search

+8 -1
View File
@@ -1,7 +1,14 @@
namespace AltGen.Console.Config;
record AppSettings(ProviderSettings[] Providers)
record AppSettings
{
public ProviderSettings[] Providers { get; init; } = [];
public AppSettings(ProviderSettings[] providers)
{
Providers = providers;
}
public AppSettings AddOrUpdateProvider(AddConfigCommand.Settings settings)
{
var updatedProviders = Providers.Select(p =>