Exemple #1
0
 public IntegrationTest()
 {
     var context = new SomeDb("name=Default");
     _db = new TestDb();
     UserStore = new UserStore(context);
     RoleStore = new RoleStore(context);
     Environment = new FakeApplicationEnvironment();
     RoleProvider = new FlexRoleProvider(RoleStore);
     MembershipProvider = new FlexMembershipProvider(UserStore, Environment);
 }
Exemple #2
0
 public IntegrationTest()
 {
     DocumentStore = new EmbeddableDocumentStore()
     {
         RunInMemory = true
     };
     DocumentStore.Conventions.DefaultQueryingConsistency = ConsistencyOptions.QueryYourWrites;
     DocumentStore.Initialize();
     UserStore = new FlexMembershipUserStore<User, Role>(DocumentStore);
     Environment = new FakeApplicationEnvironment();
     RoleProvider = new FlexRoleProvider(UserStore);
     MembershipProvider = new FlexMembershipProvider(UserStore, Environment);
 }
 public IntegrationTest()
 {
     DocumentStore = new EmbeddableDocumentStore()
     {
         RunInMemory = true , UseEmbeddedHttpServer = true
     };
     DocumentStore.RegisterListener(new NoStaleQueries());
     DocumentStore.Initialize();
     Session = DocumentStore.OpenSession();
     UserStore = new FlexMembershipUserStore<User, Role>(Session);
     Environment = new FakeApplicationEnvironment();
     RoleProvider = new FlexRoleProvider(UserStore);
     MembershipProvider = new FlexMembershipProvider(UserStore, Environment);
 }