/// <summary> /// Simple query, yields <c>ShortComment</c> objects. /// </summary> /// <param name="issueId"></param> /// <returns></returns> public IList <ShortComment> QueryComments(string issueId) { var im = new IssueManagement(Connection); var mapper = new CommentToShortCommentMapper(); return(im.GetCommentsForIssue(issueId) .Select(mapper.Map) .ToList()); }
/// <summary> /// Simple query, yields <c>ShortComment</c> objects. /// </summary> /// <param name="issueId"></param> /// <returns></returns> public IList<ShortComment> QueryComments(string issueId) { var im = new IssueManagement(Connection); var mapper = new CommentToShortCommentMapper(); return im.GetCommentsForIssue(issueId) .Select(mapper.Map) .ToList(); }