feat: initial cli implementation

This commit is contained in:
Stevan Freeborn
2026-04-17 15:28:59 -05:00
parent ab57ac5a13
commit ba927c0e18
41 changed files with 1124 additions and 17 deletions
@@ -84,8 +84,7 @@ public class SecureConfigBuilderTests
{
var act = () => _sut.UseJsonFileStorage((Action<JsonStorageOptions>)null!);
act.Should().Throw<ArgumentNullException>()
.WithParameterName("configure");
act.Should().Throw<ArgumentNullException>().WithParameterName("configure");
}
[Fact]
@@ -104,8 +103,7 @@ public class SecureConfigBuilderTests
{
var act = () => _sut.AddJsonAotContext(null!);
act.Should().Throw<ArgumentNullException>()
.WithParameterName("context");
act.Should().Throw<ArgumentNullException>().WithParameterName("context");
}
[Fact]
@@ -24,8 +24,7 @@ public class SecureConfigSourceTests
loggerFactory: _mockLoggerFactory.Object
);
act.Should().Throw<ArgumentNullException>()
.WithParameterName("storageProvider");
act.Should().Throw<ArgumentNullException>().WithParameterName("storageProvider");
}
[Fact]
@@ -37,8 +36,7 @@ public class SecureConfigSourceTests
loggerFactory: _mockLoggerFactory.Object
);
act.Should().Throw<ArgumentNullException>()
.WithParameterName("cryptoProvider");
act.Should().Throw<ArgumentNullException>().WithParameterName("cryptoProvider");
}
[Fact]
@@ -50,8 +48,7 @@ public class SecureConfigSourceTests
loggerFactory: null!
);
act.Should().Throw<ArgumentNullException>()
.WithParameterName("loggerFactory");
act.Should().Throw<ArgumentNullException>().WithParameterName("loggerFactory");
}
[Fact]
@@ -87,6 +84,7 @@ public class SecureConfigSourceTests
public void Build_WhenCalled_ItShouldCreateLoggerFromFactory()
{
var mockLogger = new Mock<ILogger<SecureConfigProvider>>();
_mockLoggerFactory
.Setup(f => f.CreateLogger(typeof(SecureConfigProvider).FullName!))
.Returns(mockLogger.Object);
@@ -1,4 +1,3 @@
using System.Runtime.CompilerServices;
using System.Text.Json;
using System.Text.Json.Serialization;