public IHttpActionResult Get(int id) { var comment = _appService.GetCommentById(id); if (comment == null) { return(NotFound()); } return(Ok(comment)); }
public void GetCommentByIdByService() { _manager.GetCommentById(1); _mockComments.Verify(m => m.Get(It.Is <int>(arg => arg == 1)), Times.Once); }