Fix tests

This commit is contained in:
Hao Kung 2016-03-16 15:01:32 -07:00
parent c5d2274315
commit 0ea969e684
1 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,9 @@ namespace Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test
return TestPlatformHelper.IsMono || !TestPlatformHelper.IsWindows;
}
public class TestDbContext : IdentityDbContext<TUser, TRole, TKey> { }
public class TestDbContext : IdentityDbContext<TUser, TRole, TKey> {
public TestDbContext(DbContextOptions options) : base(options) { }
}
protected override TUser CreateTestUser(string namePrefix = "", string email = "", string phoneNumber = "",
bool lockoutEnabled = false, DateTimeOffset? lockoutEnd = default(DateTimeOffset?), bool useNamePrefixAsUserName = false)