public void A040_Add5Countries() { countriesRepository.Save(Country1); countriesRepository.Save(Country2); countriesRepository.Save(Country3); countriesRepository.Save(Country4); countriesRepository.Save(Country5); countriesRepository.Flush(); }
public void ZZZZ_ClassCleanUp() { if (con != null) { carsRepository.DeleteAndFlush(Car2.PrimaryKey); manufacturersRepository.Refresh(); manufacturersRepository.Delete(Manufacturer1.PrimaryKey); manufacturersRepository.Delete(Manufacturer2.PrimaryKey); manufacturersRepository.Delete(Manufacturer3.PrimaryKey); manufacturersRepository.Flush(); countriesRepository.Refresh(); countriesRepository.Delete(Country1.PrimaryKey); countriesRepository.Delete(Country2.PrimaryKey); countriesRepository.Delete(Country3.PrimaryKey); countriesRepository.Flush(); regionsRepository.Refresh(); regionsRepository.Delete(Region1.PrimaryKey); regionsRepository.Delete(Region2.PrimaryKey); regionsRepository.Delete(Region3.PrimaryKey); regionsRepository.Flush(); con.Close(); } }
public static void TestFixtureSetup(TestContext context) { con = new NpgsqlConnection(cs); con.Open(); regionsRepository = new RegionsRepository(con); countriesRepository = new CountriesRepository(con); manufacturersRepository = new ManufacturersRepository(con); manufacturerValidation = new ManufacturerValidation(con); carsRepository = new CarsRepository(con); regionsRepository.Save(Region1); regionsRepository.Save(Region2); regionsRepository.Save(Region3); regionsRepository.Flush(); countriesRepository.Save(Country1); countriesRepository.Save(Country2); countriesRepository.Save(Country3); countriesRepository.Flush(); manufacturersRepository.Save(Manufacturer1); manufacturersRepository.Save(Manufacturer2); manufacturersRepository.Save(Manufacturer3); manufacturersRepository.Flush(); carsRepository.SaveAndFlush(Car2); }
public void ZZZZ_ClassCleanUp() { if (con != null) { manufacturersRepository.Refresh(); manufacturersRepository.Delete(Manufacturer1.PrimaryKey); manufacturersRepository.Delete(Manufacturer2.PrimaryKey); manufacturersRepository.Delete(Manufacturer3.PrimaryKey); manufacturersRepository.Delete(Manufacturer4.PrimaryKey); manufacturersRepository.Delete(Manufacturer5.PrimaryKey); manufacturersRepository.Delete(Manufacturer6.PrimaryKey); manufacturersRepository.Delete(Manufacturer7.PrimaryKey); manufacturersRepository.Delete(Manufacturer8.PrimaryKey); manufacturersRepository.Delete(Manufacturer9.PrimaryKey); manufacturersRepository.Delete(manufacturer10Key); manufacturersRepository.Flush(); countriesRepository.Refresh(); countriesRepository.Delete(Country1.PrimaryKey); countriesRepository.Delete(Country2.PrimaryKey); countriesRepository.Delete(Country3.PrimaryKey); countriesRepository.Delete(Country4.PrimaryKey); countriesRepository.Delete(Country5.PrimaryKey); countriesRepository.Flush(); regionsRepository.Refresh(); regionsRepository.Delete(Region1.PrimaryKey); regionsRepository.Delete(Region2.PrimaryKey); regionsRepository.Delete(Region3.PrimaryKey); regionsRepository.Flush(); con.Close(); } }
public static void TestFixtureSetup(TestContext context) { con = new NpgsqlConnection(cs); con.Open(); regionsRepository = new RegionsRepository(con); countriesRepository = new CountriesRepository(con); manufacturersRepository = new ManufacturersRepository(con); manufacturersService = new ManufacturersService(con); regionsRepository.Save(Region1); regionsRepository.Save(Region2); regionsRepository.Save(Region3); regionsRepository.Flush(); countriesRepository.Save(Country1); countriesRepository.Save(Country2); countriesRepository.Save(Country3); countriesRepository.Save(Country4); countriesRepository.Save(Country5); countriesRepository.Flush(); manufacturersRepository.Save(Manufacturer1); manufacturersRepository.Save(Manufacturer2); manufacturersRepository.Save(Manufacturer3); manufacturersRepository.Save(Manufacturer4); manufacturersRepository.Save(Manufacturer5); manufacturersRepository.Save(Manufacturer6); manufacturersRepository.Save(Manufacturer7); manufacturersRepository.Save(Manufacturer8); manufacturersRepository.Save(Manufacturer9); manufacturersRepository.Flush(); }
public static void TestFixtureSetup(TestContext context) { con = new NpgsqlConnection(cs); con.Open(); regionsRepository = new RegionsRepository(con); countriesRepository = new CountriesRepository(con); manufacturersRepository = new ManufacturersRepository(con); carsRepository = new CarsRepository(con); carValidation = new CarValidation(con); ownerCarsRepository = new OwnerCarsRepository(con); ownersRepository = new OwnersRepository(con); regionsRepository.Save(Region1); regionsRepository.Save(Region2); regionsRepository.Save(Region3); regionsRepository.Flush(); countriesRepository.Save(Country1); countriesRepository.Save(Country2); countriesRepository.Save(Country3); countriesRepository.Save(Country4); countriesRepository.Save(Country5); countriesRepository.Flush(); manufacturersRepository.Save(Manufacturer1); manufacturersRepository.Save(Manufacturer2); manufacturersRepository.Save(Manufacturer3); manufacturersRepository.Save(Manufacturer4); manufacturersRepository.Save(Manufacturer5); manufacturersRepository.Save(Manufacturer6); manufacturersRepository.Save(Manufacturer7); manufacturersRepository.Save(Manufacturer8); manufacturersRepository.Save(Manufacturer9); manufacturersRepository.Flush(); carsRepository.Save(Car1); carsRepository.Save(Car2); carsRepository.Save(Car3); carsRepository.Save(Car4); carsRepository.Save(Car5); carsRepository.Save(Car6); carsRepository.Save(Car7); carsRepository.Save(Car8); carsRepository.Save(Car9); carsRepository.Save(Car10); carsRepository.Save(Car11); carsRepository.Save(Car12); carsRepository.Save(Car13); carsRepository.Save(Car14); carsRepository.Save(Car15); carsRepository.Flush(); ownersRepository.SaveAndFlush(Owner2); ownerCarsRepository.SaveAndFlush(OwnerCar2); }
public void ZZZZ_ClassCleanUp() { if (con != null) { ownerCarsRepository.DeleteAndFlush(OwnerCar2.PrimaryKey); ownersRepository.DeleteAndFlush(Owner2.PrimaryKey); carsRepository.Refresh(); carsRepository.Delete(Car1.PrimaryKey); carsRepository.Delete(Car2.PrimaryKey); carsRepository.Delete(Car3.PrimaryKey); carsRepository.Delete(Car4.PrimaryKey); carsRepository.Delete(Car5.PrimaryKey); carsRepository.Delete(Car6.PrimaryKey); carsRepository.Delete(Car7.PrimaryKey); carsRepository.Delete(Car8.PrimaryKey); carsRepository.Delete(Car9.PrimaryKey); carsRepository.Delete(Car10.PrimaryKey); carsRepository.Delete(Car11.PrimaryKey); carsRepository.Delete(Car12.PrimaryKey); carsRepository.Delete(Car13.PrimaryKey); carsRepository.Delete(Car14.PrimaryKey); carsRepository.Delete(Car15.PrimaryKey); carsRepository.Flush(); manufacturersRepository.Refresh(); manufacturersRepository.Delete(Manufacturer1.PrimaryKey); manufacturersRepository.Delete(Manufacturer2.PrimaryKey); manufacturersRepository.Delete(Manufacturer3.PrimaryKey); manufacturersRepository.Delete(Manufacturer4.PrimaryKey); manufacturersRepository.Delete(Manufacturer5.PrimaryKey); manufacturersRepository.Delete(Manufacturer6.PrimaryKey); manufacturersRepository.Delete(Manufacturer7.PrimaryKey); manufacturersRepository.Delete(Manufacturer8.PrimaryKey); manufacturersRepository.Delete(Manufacturer9.PrimaryKey); manufacturersRepository.Flush(); countriesRepository.Refresh(); countriesRepository.Delete(Country1.PrimaryKey); countriesRepository.Delete(Country2.PrimaryKey); countriesRepository.Delete(Country3.PrimaryKey); countriesRepository.Delete(Country4.PrimaryKey); countriesRepository.Delete(Country5.PrimaryKey); countriesRepository.Flush(); regionsRepository.Refresh(); regionsRepository.Delete(Region1.PrimaryKey); regionsRepository.Delete(Region2.PrimaryKey); regionsRepository.Delete(Region3.PrimaryKey); regionsRepository.Flush(); con.Close(); } }
public void ZZZZ_ClassCleanUp() { if (con != null) { countriesRepository.Refresh(); countriesRepository.Delete(Country1.PrimaryKey); countriesRepository.Delete(Country2.PrimaryKey); countriesRepository.Delete(Country3.PrimaryKey); countriesRepository.Delete(Country4.PrimaryKey); countriesRepository.Delete(Country5.PrimaryKey); countriesRepository.Flush(); regionsRepository.Refresh(); regionsRepository.Delete(Region1.PrimaryKey); regionsRepository.Delete(Region2.PrimaryKey); regionsRepository.Delete(Region3.PrimaryKey); regionsRepository.Flush(); con.Close(); } }