tests: work on writing tests for console functionality

This commit is contained in:
Stevan Freeborn
2025-03-10 20:48:19 -05:00
parent 69a79e297d
commit 5c2059cfa9
3 changed files with 80 additions and 6 deletions
+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 =>