Esempio n. 1
0
        public void InsertTest()
        {
            var restaurantes = repo.GetAll();

            foreach (var item in restaurantes)
            {
                repo.Delete(item);
            }

            foreach (var item in this.GetRestaurantes())
            {
                repo.Save(item);
            }

            var countFinal = repo.GetAll().Count;

            Assert.AreEqual(this.GetRestaurantes().Count, countFinal);
        }
 public List <Restaurante> GetRestaurantes()
 {
     return(repo.GetAll());
 }