public void RemoverTest() { // Act _LocalService.Remover(2); // Assert Assert.AreEqual(2, _LocalService.ObterTodos().Count()); var Local = _LocalService.Obter(2); Assert.AreEqual(null, Local); }
public ActionResult Delete(int id, LocalModel local) { _localService.Remover(id); return(RedirectToAction(nameof(Index))); }
public void Remover(int Id) { _LocalService.Remover(Id); }