Exemple #1
0
        public void Excluir_Tarefa_Sucesso()
        {
            _tarefaRepositoryMock.Setup(repository => repository.Excluir(It.IsAny <int>())).Returns(true);
            var response = _tarefaService.Excluir(It.IsAny <int>());

            Assert.True(response);
        }
 public bool Excluir(Tarefa tarefa)
 {
     try
     {
         return(service.Excluir(tarefa));
     }
     catch (Exception error)
     {
         Console.WriteLine($"Erro ao Excluir Tarefa! Erro: ", error.Message);
         throw;
     }
 }