Fixing build break

This commit is contained in:
Pranav K 2014-10-17 07:13:59 -07:00
parent e720edf4bd
commit ee6d0cbd6d
2 changed files with 6 additions and 2 deletions

View File

@ -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<LoggerFactory>();
services.AddTransient<InMemoryContext>();
services.AddTransient<IRoleStore<IdentityRole>, RoleStore<IdentityRole, InMemoryContext>>();
services.AddTransient<IRoleValidator<IdentityRole>, RoleValidator<IdentityRole>>();

View File

@ -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<LoggerFactory>();
var serviceProvider = services.BuildServiceProvider();
var db = new InMemoryContext(serviceProvider);