예제 #1
0
 protected override UserManager <GuidUser> CreateManager(object context)
 {
     if (context == null)
     {
         context = CreateTestContext();
     }
     return(MockHelpers.CreateManager(() => new ApplicationUserStore((ApplicationDbContext)context)));
 }
예제 #2
0
 protected override UserManager <TUser> CreateManager(object context = null)
 {
     if (context == null)
     {
         context = CreateTestContext();
     }
     return(MockHelpers.CreateManager(() => new UserStore <TUser, TRole, ApplicationDbContext, TKey>((ApplicationDbContext)context)));
 }
예제 #3
0
 public override UserManager <GuidUser> CreateManager(ApplicationDbContext context)
 {
     return(MockHelpers.CreateManager(() => new ApplicationUserStore(context)));
 }
예제 #4
0
 public static UserManager <IdentityUser> CreateManager(InMemoryContext context)
 {
     return(MockHelpers.CreateManager <IdentityUser>(() => new InMemoryUserStore <IdentityUser>(context)));
 }
예제 #5
0
 public override UserManager <IntUser> CreateManager(ApplicationDbContext context)
 {
     return(MockHelpers.CreateManager(() => new UserStore <IntUser, IntRole, ApplicationDbContext, int>(context)));
 }
예제 #6
0
 public override UserManager <StringUser> CreateManager(ApplicationDbContext context)
 {
     return(MockHelpers.CreateManager(() => new UserStore <StringUser, StringRole, ApplicationDbContext, string>(context)));
 }