public static void TestFixtureSetup(TestContext context) { con = new NpgsqlConnection(cs); con.Open(); countryValidation = new CountryValidation(con); countriesRespository = new CountriesRepository(con); regionsRepository = new RegionsRepository(con); manufacturersRepository = new ManufacturersRepository(con); regionsRepository.Save(Region1); regionsRepository.Save(Region2); regionsRepository.Save(Region3); regionsRepository.Flush(); countriesRespository.Save(Country1); countriesRespository.Save(Country2); countriesRespository.Save(Country3); countriesRespository.Flush(); manufacturersRepository.SaveAndFlush(Manufacturer1); }