예제 #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);
        }
예제 #2
0
 public ActionResult Delete(int id, LocalModel local)
 {
     _localService.Remover(id);
     return(RedirectToAction(nameof(Index)));
 }
예제 #3
0
 public void Remover(int Id)
 {
     _LocalService.Remover(Id);
 }