public void RemoverTest() { // Act _tipoexameService.Remover(2); // Assert Assert.AreEqual(2, _tipoexameService.ObterTodos().Count()); var tipoexame = _tipoexameService.Obter(2); Assert.AreEqual(null, tipoexame); }
public ActionResult Delete(int id, TipoexameModel tipoExameModel) { _tipoexameService.Remover(id); return(RedirectToAction(nameof(Index))); }