public void FixtureSetup()
        {
            IDbContextFactory <PeopleSearchContext> contextFactory = new PeopleSearchContextFactory();

            dbContext     = contextFactory.NewDbContext();
            unitOfWork    = new PeopleSearchUnitOfWork(dbContext);
            dbInitializer = new PeopleSearchDbInitializer();
        }
Beispiel #2
0
        public void FixtureSetup()
        {
            // Initialize the objects
            IDbContextFactory <PeopleSearchContext> contextFactory = new PeopleSearchContextFactory();

            dbContext     = contextFactory.NewDbContext();
            unitOfWork    = new PeopleSearchUnitOfWork(dbContext);
            dbInitializer = new PeopleSearchDbInitializer();

            // Make sure the database is initialized and seeded
            Database.SetInitializer(dbInitializer);
            dbContext.Database.Initialize(false);
        }