Skip to content

Commit a819ad3

Browse files
committed
#262 Fixed the user secret configuration issue in the example test project
1 parent 3731938 commit a819ad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Xunit.Microsoft.DependencyInjection.ExampleTests/Fixtures/TestProjectFixture.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ protected override void AddServices(IServiceCollection services, IConfiguration?
88
.AddKeyedTransient<ICarMaker, Porsche>("Porsche")
99
.AddKeyedTransient<ICarMaker, Toyota>("Toyota")
1010
.Configure<Options>(config => configuration?.GetSection("Options").Bind(config))
11-
.Configure<SecretValues>(config => configuration?.GetSection(nameof(SecretValues)));
11+
.Configure<SecretValues>(config => configuration?.GetSection(nameof(SecretValues)).Bind(config));
1212

1313
protected override ValueTask DisposeAsyncCore()
1414
=> new();

0 commit comments

Comments
 (0)