public void DeleteCommentByService()
        {
            _manager.DeleteCommentById(1);

            _mockComments.Verify(m => m.Delete(It.Is <int>(arg => arg == 1)), Times.Once);
            _mockUnitOfWork.Verify(m => m.Save(), Times.Once);
        }
示例#2
0
 public IHttpActionResult Delete(int id)
 {
     _appService.DeleteCommentById(id);
     return(Ok());
 }