Exemple #1
0
 public UserRepository(UserStore <User> store, AuthFactory databaseFactory)
     : base(store)
 {
     _databaseFactory = _databaseFactory ?? databaseFactory ?? new AuthFactory();
     if (_databaseFactory != null)
     {
         dataContext = dataContext ?? (_databaseFactory.Get() as AuthContext);
     }
 }
Exemple #2
0
        public override void Initialize()
        {
            base.Initialize();

            Fixture = new DatabaseAuthFixture();

            Factory = Fixture.Factory;

            var context = Factory.Get();

            IdentityUserStore = new UserStore <User>();

            Uow = new AuthUnitOfWork(Factory);

            Database.SetInitializer(new DatabaseTestInitializer());
        }