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); }
public IHttpActionResult Delete(int id) { _appService.DeleteCommentById(id); return(Ok()); }