コード例 #1
0
        public void RemoverTest()
        {
            // Act
            _statuspagamentoService.Excluir(2);
            // Assert
            Assert.AreEqual(1, _statuspagamentoService.ObterTodos().Count());
            var statuspagamento = _statuspagamentoService.Buscar(2);

            Assert.AreEqual(null, statuspagamento);
        }
コード例 #2
0
 public ActionResult Delete(int id, StatuspagamentoModel statuspagamentoModel)
 {
     _statuspagamentoService.Excluir(id);
     return(RedirectToAction(nameof(Index)));
 }