Exemple #1
0
        /// <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());
        }
Exemple #2
0
        /// <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();
        }