diff --git a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/RoleStoreTest.cs b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/RoleStoreTest.cs index a04ad66e2c..162e72ed12 100644 --- a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/RoleStoreTest.cs +++ b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/RoleStoreTest.cs @@ -4,8 +4,10 @@ using System; using System.Threading.Tasks; using Microsoft.AspNet.Identity.Test; +using Microsoft.Framework.DependencyInjection.Advanced; using Microsoft.Framework.DependencyInjection; using Microsoft.Framework.DependencyInjection.Fallback; +using Microsoft.Framework.Logging; using Xunit; namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test @@ -28,7 +30,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test public async Task CanCreateRoleWithSingletonManager() { var services = new ServiceCollection(); - services.AddEntityFramework().AddInMemoryStore(); + services.AddEntityFramework().AddInMemoryStore().UseLoggerFactory(); services.AddTransient(); services.AddTransient, RoleStore>(); services.AddTransient, RoleValidator>(); diff --git a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/TestIdentityFactory.cs b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/TestIdentityFactory.cs index 369dd36a34..95b40a13c1 100644 --- a/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/TestIdentityFactory.cs +++ b/test/Microsoft.AspNet.Identity.EntityFramework.InMemory.Test/TestIdentityFactory.cs @@ -3,7 +3,9 @@ using Microsoft.AspNet.Identity.Test; using Microsoft.Framework.DependencyInjection; +using Microsoft.Framework.DependencyInjection.Advanced; using Microsoft.Framework.DependencyInjection.Fallback; +using Microsoft.Framework.Logging; namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test { @@ -12,7 +14,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test public static InMemoryContext CreateContext() { var services = new ServiceCollection(); - services.AddEntityFramework().AddInMemoryStore(); + services.AddEntityFramework().AddInMemoryStore().UseLoggerFactory(); var serviceProvider = services.BuildServiceProvider(); var db = new InMemoryContext(serviceProvider);