diff --git a/samples/IdentitySample.Mvc/project.json b/samples/IdentitySample.Mvc/project.json index 16f59acfc8..0be5c11d05 100644 --- a/samples/IdentitySample.Mvc/project.json +++ b/samples/IdentitySample.Mvc/project.json @@ -35,10 +35,7 @@ "web": "IdentitySample.Mvc" }, "frameworks": { - "dnx451": { - "frameworkAssemblies": { - "System.Reflection": "" - } + "net451": { }, "netstandardapp1.5": { "imports": [ diff --git a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/RoleStoreTest.cs b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/RoleStoreTest.cs index a8c236d590..a356787781 100644 --- a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/RoleStoreTest.cs +++ b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/RoleStoreTest.cs @@ -25,8 +25,8 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test public async Task CanCreateRoleWithSingletonManager() { var services = TestIdentityFactory.CreateTestServices(); - services.AddAddEntityFrameworkInMemoryDatabase(); - services.AddTransient(); + services.AddEntityFrameworkInMemoryDatabase(); + services.AddSingleton(new InMemoryContext(new DbContextOptionsBuilder().Options)); services.AddTransient, RoleStore>(); services.AddSingleton>(); var provider = services.BuildServiceProvider(); diff --git a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/TestIdentityFactory.cs b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/TestIdentityFactory.cs index d8729b4a7b..4c71470e8a 100644 --- a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/TestIdentityFactory.cs +++ b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test/TestIdentityFactory.cs @@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http.Internal; using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test @@ -14,7 +13,7 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.InMemory.Test public static InMemoryContext CreateContext() { var services = new ServiceCollection(); - services.AddAddEntityFrameworkInMemoryDatabase(); + services.AddEntityFrameworkInMemoryDatabase(); var serviceProvider = services.BuildServiceProvider(); var db = new InMemoryContext(new DbContextOptionsBuilder().Options); diff --git a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test/DefaultPocoTest.cs b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test/DefaultPocoTest.cs index e2da4712fb..83897ce384 100644 --- a/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test/DefaultPocoTest.cs +++ b/test/Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test/DefaultPocoTest.cs @@ -25,7 +25,6 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test services .AddDbContext(o => o.UseSqlServer(fixture.ConnectionString)) - .ServiceCollection() .AddIdentity() .AddEntityFrameworkStores();