public void InsertTest() { var pratos = repo.GetAll(); foreach (var item in pratos) { repo.Delete(item); } foreach (var item in this.GetPratos()) { repo.Save(item); } var countFinal = repo.GetAll().Count; Assert.AreEqual(this.GetPratos().Count, countFinal); }
public List <Prato> GetPratos() { return(repo.GetAll()); }