コード例 #1
0
 protected override void AddUserStore(IServiceCollection services, object context = null)
 {
     _store = new UserStoreWithGenerics((InMemoryContextWithGenerics)context, "TestContext");
     services.AddSingleton <IUserStore <IdentityUserWithGenerics> >(_store);
 }
コード例 #2
0
 protected override void AddUserStore(IServiceCollection services, TestConnectionFactory context = null)
 {
     _store = new UserStoreWithGenerics(context ?? CreateTestContext(), "TestContext");
     services.AddSingleton <IUserStore <IdentityUserWithGenerics> >(_store);
 }