Пример #1
0
 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);
 }
Пример #3
0
        //[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);
        }
Пример #4
0
        //[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);
        }
Пример #5
0
 public RepositoryIntegrationTest()
 {
     this.ctx             = new WeNeedUHaveContext();
     this.unitOfWork      = new UnitOfWork(ctx);
     this.stateRepository = new Repository <State>(unitOfWork);
 }
Пример #6
0
 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);
 }
Пример #9
0
 public LocationRepositoryTest()
 {
     this.ctx        = new WeNeedUHaveContext();
     this.unitOfWork = new UnitOfWork(ctx);
     this.repository = new LocationRepository(unitOfWork);
 }
 public LocationRepositoryTest()
 {
     this.ctx = new WeNeedUHaveContext();
     this.unitOfWork = new UnitOfWork(ctx);
     this.repository = new LocationRepository(unitOfWork);
 }