Fix build break due to Configuration rename

This commit is contained in:
Eilon Lipton 2015-05-16 23:42:42 -07:00
parent d5cfe839db
commit 99c7859608
1 changed files with 2 additions and 2 deletions

View File

@ -66,7 +66,7 @@ namespace Microsoft.AspNet.Identity.Test
var services = new ServiceCollection();
services.AddIdentity<TestUser,TestRole>();
services.ConfigureIdentity(config.GetSubKey("identity"));
services.ConfigureIdentity(config.GetConfigurationSection("identity"));
var accessor = services.BuildServiceProvider().GetRequiredService<IOptions<IdentityOptions>>();
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<TestUser, TestRole>(o => { o.User.RequireUniqueEmail = false; o.Lockout.MaxFailedAccessAttempts++; });
var accessor = services.BuildServiceProvider().GetRequiredService<IOptions<IdentityOptions>>();
Assert.NotNull(accessor);