public void ApagarTest()
 {
     repositorio.Apagar(5);
     Assert.IsNull(repositorio.Ler(5));
 }
Beispiel #2
0
 public ActionResult Delete(int id)
 {
     repositorio.Apagar(id);
     return(RedirectToAction("index"));
 }