public void TestInitialize() { _dataBaseHelper = new EfDatabaseHelper(); _dataBaseHelper.DropCreateDatabaseIfModelChanges(); _dataBaseHelper.DeleteAll(); _dataBaseTestHelper = new DataBaseTestHelper(); _dataBaseTestHelper.SeedTables(); }
public void TestInitialize() { _dataBaseHelper = new EfDatabaseHelper(); _dataBaseHelper.MigrateDatabaseToLatestVersion(); _dataBaseHelper.ClearAllTables(); _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(); _miamDbContextBefore = new MiamDbContext(); _miamDbContextAfter = new MiamDbContext(); _restaurantRepository = new EfEntityRepository <Restaurant>(); _fixture = new Fixture(); _fixture.Customizations.Add(new VirtualMembersOmitter()); }
public DatabaseHelperAcceptanceTestApi() { _dataBaseHelper = new EfDatabaseHelper(); }
public void ClearDataBaseTables() { _dataBaseHelper = new EfDatabaseHelper(); _dataBaseHelper.MigrateDatabaseToLatestVersion(); _dataBaseHelper.ClearAllTables(); }