Example #1
0
        public void RemoverTest()
        {
            // Act
            _LocalService.Remover(2);
            // Assert
            Assert.AreEqual(2, _LocalService.ObterTodos().Count());
            var Local = _LocalService.Obter(2);

            Assert.AreEqual(null, Local);
        }
Example #2
0
 public ActionResult Delete(int id, LocalModel local)
 {
     _localService.Remover(id);
     return(RedirectToAction(nameof(Index)));
 }
 public void Remover(int Id)
 {
     _LocalService.Remover(Id);
 }