public void RemoverTest() { // Act _statuspagamentoService.Excluir(2); // Assert Assert.AreEqual(1, _statuspagamentoService.ObterTodos().Count()); var statuspagamento = _statuspagamentoService.Buscar(2); Assert.AreEqual(null, statuspagamento); }
public ActionResult Delete(int id, StatuspagamentoModel statuspagamentoModel) { _statuspagamentoService.Excluir(id); return(RedirectToAction(nameof(Index))); }