public void ZZZZ_CleanUp() { if (con != null) { manufacturersRepository.DeleteAndFlush(Manufacturer1.PrimaryKey); countriesRespository.Refresh(); countriesRespository.Delete(Country1.PrimaryKey); countriesRespository.Delete(Country2.PrimaryKey); countriesRespository.Delete(Country3.PrimaryKey); countriesRespository.Flush(); regionsRepository.Refresh(); regionsRepository.Delete(Region1.PrimaryKey); regionsRepository.Delete(Region2.PrimaryKey); regionsRepository.Delete(Region3.PrimaryKey); regionsRepository.Flush(); con.Close(); } }