public void TestInitialize()
        {
            _dataBaseHelper = new EfDatabaseHelper();
            _dataBaseHelper.DropCreateDatabaseIfModelChanges();
            _dataBaseHelper.DeleteAll();

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();
        }
        public void TestInitialize()
        {
            _dataBaseHelper = new EfDatabaseHelper();
            _dataBaseHelper.DropCreateDatabaseIfModelChanges();
            _dataBaseHelper.DeleteAll();

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();

            _miamDbContextBefore = new MiamDbContext();
            _miamDbContextAfter = new MiamDbContext();
            _restaurantRepository = new EfEntityRepository<Restaurant>();

            _fixture = new Fixture();
            _fixture.Customizations.Add(new VirtualMembersOmitter());
        }
        public void TestInitialize()
        {
            _dataBaseHelper = new EfDatabaseHelper();

            _dataBaseHelper.MigrateDatabaseToLatestVersion();
            _dataBaseHelper.ClearAllTables();

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();
        }
Esempio n. 4
0
 private void SeedDb()
 {
     var testData = new DataBaseTestHelper();
     testData.SeedTables();
 }
Esempio n. 5
0
        public void TestInitialize()
        {
            _dataBaseHelper = new EfDatabaseHelper();
            _dataBaseHelper.MigrateDatabaseToLatestVersion();
            _dataBaseHelper.ClearAllTables();

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();

            _miamDbContextBefore = new MiamDbContext();
            _miamDbContextAfter = new MiamDbContext();
            _restaurantRepository = new EfEntityRepository<Restaurant>();

            _fixture = new Fixture();
            _fixture.Customizations.Add(new VirtualMembersOmitter());
        }