Exemplo n.º 1
0
        public void BugService_delete_simple_bug()
        {
            var idBug = Guid.NewGuid();

            _bugRepository.Setup(x => x.Delete(It.IsAny <Guid>()));

            _bugService.Delete(idBug);

            _bugRepository.Verify(x => x.Delete(It.IsAny <Guid>()), Times.Once());
        }
Exemplo n.º 2
0
 public ActionResult DeleteBug(Bug bug)
 {
     _bugService.Delete(bug.Id);
     return(Ok());
 }