diff --git a/test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs b/test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs index 2ca7507d91..7546b0aa2b 100644 --- a/test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs +++ b/test/Microsoft.AspNet.Identity.Test/IdentityOptionsTest.cs @@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Identity.Test var services = new ServiceCollection(); services.AddIdentity(); - services.ConfigureIdentity(config.GetSubKey("identity")); + services.ConfigureIdentity(config.GetConfigurationSection("identity")); var accessor = services.BuildServiceProvider().GetRequiredService>(); Assert.NotNull(accessor); var options = accessor.Options; @@ -95,7 +95,7 @@ namespace Microsoft.AspNet.Identity.Test }; var config = new Configuration(new MemoryConfigurationSource(dic)); var services = new ServiceCollection(); - services.ConfigureIdentity(config.GetSubKey("identity")); + services.ConfigureIdentity(config.GetConfigurationSection("identity")); services.AddIdentity(o => { o.User.RequireUniqueEmail = false; o.Lockout.MaxFailedAccessAttempts++; }); var accessor = services.BuildServiceProvider().GetRequiredService>(); Assert.NotNull(accessor);