public void RemoverTest() { // Act _TipopatrimonioService.Remover(2); // Assert Assert.AreEqual(2, _TipopatrimonioService.ObterTodos().Count()); var Tipopatrimonio = _TipopatrimonioService.Obter(2); Assert.AreEqual(null, Tipopatrimonio); }
public ActionResult Delete(int id, TipopatrimonioModel tipoPatrimonio) { _tipoPatrimonioService.Remover(id); return(RedirectToAction(nameof(Index))); }