private static string ExpectedAssignmentMessageFor(string ticketList, string user)
{
var sb = new StringBuilder();
foreach (var ticket in ticketList.Split(','))
{
var ticketWithNoSpaces = ticket.Trim();
if (NonExistingIssue == ticketWithNoSpaces)
{
sb.AppendFormat("Failed to asssign issue {0}\r\nFailed to get issue: {0}\r\n", ticketWithNoSpaces);
}
else
{
sb.AppendFormat("Issue {0} ('{1}')\r\nsuccessfuly assigned to {2}\r\n", ticketWithNoSpaces, IssueTestService.Issue[ticketWithNoSpaces].summary, user);
}
}
return sb.Remove(sb.Length - 2, 2).ToString();
}