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); }
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); }