public PersonRepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.adminRepository = new Repository <Admin>(unitOfWork); this.repository = new PersonRepository(unitOfWork, adminRepository); }
public PersonRepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.adminRepository = new Repository<Admin>(unitOfWork); this.repository = new PersonRepository(unitOfWork, adminRepository); }
//[Fact] public void InitializeDatabase() { Database.SetInitializer( new DropCreateDatabaseAlways<WeNeedUHaveContext>()); WeNeedUHaveContext ctx = new WeNeedUHaveContext(); IQueryable<Organization> query = ctx.Organization; var states = query.ToList(); Assert.NotNull(states); }
//[Fact] public void InitializeDatabase() { Database.SetInitializer( new DropCreateDatabaseAlways <WeNeedUHaveContext>()); WeNeedUHaveContext ctx = new WeNeedUHaveContext(); IQueryable <Organization> query = ctx.Organization; var states = query.ToList(); Assert.NotNull(states); }
public RepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.stateRepository = new Repository <State>(unitOfWork); }
public CategoryRepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.repository = new CategoryRepository(unitOfWork); }
public RepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.stateRepository = new Repository<State>(unitOfWork); }
public OrganizationRepositoryIntegrationTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.repository = new OrganizationRepository(unitOfWork); }
public LocationRepositoryTest() { this.ctx = new WeNeedUHaveContext(); this.unitOfWork = new UnitOfWork(ctx); this.repository = new LocationRepository(unitOfWork); }