Пример #1
0
        private string FormatIssue(RemoteIssue issue, bool showComments)
        {
            string issueDetails = Run(() => issue.Format());
            if (showComments)
            {
                issueDetails = issueDetails + "\r\n" + Run(() => _jira.GetComments(issue.key));
            }

            return issueDetails + "\r\n" + UrlFor(issue);
        }
Пример #2
0
        private static string ExpectedResultFor(RemoteIssue issue, string comments)
        {
            if (!string.IsNullOrEmpty(comments))
            {
                comments = "\r\n" + comments;
            }

            return string.Format("{0}{1}\r\nhttp://sei.la.com/browse/{2}\r\n", issue.Format(), comments, issue.key);
        }