feat: initial cli implementation
This commit is contained in:
+2
-4
@@ -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]
|
||||
|
||||
+4
-6
@@ -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
@@ -1,4 +1,3 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user