public override void Initialize()
        {
            base.Initialize();

            Fixture = new DatabaseAuthFixture();

            Factory = Fixture.Factory;

            var context = Factory.Get();

            IdentityUserStore = new UserStore<User>();

            Uow = new AuthUnitOfWork(Factory);
        }
        public override void Initialize()
        {
            base.Initialize();

            var context = Factory.Get();

            Uow = new AuthUnitOfWork(Factory);

            PermissionRepository = new PermissionRepository(Factory);
            GroupRepository = new GroupRepository(Factory);
            AccountRepository = new AccountRepository(Factory);
            UserRepository = new UserRepository(IdentityUserStore, Factory);

            AuthorizationService = new AuthorizationService(GroupRepository, PermissionRepository, AccountRepository, Uow);
        }
        public DatabaseAuthFixture()
        {
            Factory = new AuthFactory();

            UnitOfWork = new AuthUnitOfWork(Factory);
        }