tests: work on writing tests for console functionality
This commit is contained in:
1 parent
69a79e297d
commit
5c2059cfa9
3 files changed
+80
-6
No files matched your search
@@ -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 =>
|
||||
|
||||
Reference in new issue
Block a user