public void AddRange(IList <Continent> continents) { foreach (Continent item in continents) { continentRepository.Insert(item); } continentRepository.Commit(); }
public void ConnectionTest() { Continent continent = new Continent(); continent.Id = Guid.NewGuid(); continent.Name = "Europa"; continentRepository.Insert(continent); continentRepository.Commit(); Continent result = continentRepository.Single(n => n.Name == "Europa"); Assert.AreNotEqual(result.Name, string.Empty); continentRepository.Delete(result); continentRepository.Commit(); }