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

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();
        }
Пример #2
0
        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());
        }
Пример #4
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());
        }
Пример #5
0
 public DatabaseHelperAcceptanceTestApi()
 {
     _dataBaseHelper = new EfDatabaseHelper();
 }
Пример #6
0
 public void ClearDataBaseTables()
 {
     _dataBaseHelper = new EfDatabaseHelper();
     _dataBaseHelper.MigrateDatabaseToLatestVersion();
     _dataBaseHelper.ClearAllTables();
 }