Fixing build break
This commit is contained in:
parent
e720edf4bd
commit
ee6d0cbd6d
|
|
@ -4,8 +4,10 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Microsoft.AspNet.Identity.Test;
|
using Microsoft.AspNet.Identity.Test;
|
||||||
|
using Microsoft.Framework.DependencyInjection.Advanced;
|
||||||
using Microsoft.Framework.DependencyInjection;
|
using Microsoft.Framework.DependencyInjection;
|
||||||
using Microsoft.Framework.DependencyInjection.Fallback;
|
using Microsoft.Framework.DependencyInjection.Fallback;
|
||||||
|
using Microsoft.Framework.Logging;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
||||||
|
|
@ -28,7 +30,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
||||||
public async Task CanCreateRoleWithSingletonManager()
|
public async Task CanCreateRoleWithSingletonManager()
|
||||||
{
|
{
|
||||||
var services = new ServiceCollection();
|
var services = new ServiceCollection();
|
||||||
services.AddEntityFramework().AddInMemoryStore();
|
services.AddEntityFramework().AddInMemoryStore().UseLoggerFactory<LoggerFactory>();
|
||||||
services.AddTransient<InMemoryContext>();
|
services.AddTransient<InMemoryContext>();
|
||||||
services.AddTransient<IRoleStore<IdentityRole>, RoleStore<IdentityRole, InMemoryContext>>();
|
services.AddTransient<IRoleStore<IdentityRole>, RoleStore<IdentityRole, InMemoryContext>>();
|
||||||
services.AddTransient<IRoleValidator<IdentityRole>, RoleValidator<IdentityRole>>();
|
services.AddTransient<IRoleValidator<IdentityRole>, RoleValidator<IdentityRole>>();
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,9 @@
|
||||||
|
|
||||||
using Microsoft.AspNet.Identity.Test;
|
using Microsoft.AspNet.Identity.Test;
|
||||||
using Microsoft.Framework.DependencyInjection;
|
using Microsoft.Framework.DependencyInjection;
|
||||||
|
using Microsoft.Framework.DependencyInjection.Advanced;
|
||||||
using Microsoft.Framework.DependencyInjection.Fallback;
|
using Microsoft.Framework.DependencyInjection.Fallback;
|
||||||
|
using Microsoft.Framework.Logging;
|
||||||
|
|
||||||
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
||||||
{
|
{
|
||||||
|
|
@ -12,7 +14,7 @@ namespace Microsoft.AspNet.Identity.EntityFramework.InMemory.Test
|
||||||
public static InMemoryContext CreateContext()
|
public static InMemoryContext CreateContext()
|
||||||
{
|
{
|
||||||
var services = new ServiceCollection();
|
var services = new ServiceCollection();
|
||||||
services.AddEntityFramework().AddInMemoryStore();
|
services.AddEntityFramework().AddInMemoryStore().UseLoggerFactory<LoggerFactory>();
|
||||||
var serviceProvider = services.BuildServiceProvider();
|
var serviceProvider = services.BuildServiceProvider();
|
||||||
|
|
||||||
var db = new InMemoryContext(serviceProvider);
|
var db = new InMemoryContext(serviceProvider);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue