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());
        }
Exemplo n.º 3
0
        public void TestInitialize()
        {
            _dataBaseHelper = new EfDatabaseHelper();

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

            _dataBaseTestHelper = new DataBaseTestHelper();
            _dataBaseTestHelper.SeedTables();
        }
Exemplo n.º 4
0
 private void SeedDb()
 {
     var testData = new DataBaseTestHelper();
     testData.SeedTables();
 }
Exemplo 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());
        }