예제 #1
0
 /// <summary>
 ///     Basic checking of InquirerCaseRecipient
 /// </summary>
 private void ChecksForInquirerCaseRecipient(InquirerCaseRecipient inquirerCaseRecipient)
 {
     Assert.IsNotNull(inquirerCaseRecipient.Organization, "No organization for this inquirer case.");
     Assert.IsNotNullOrEmpty(inquirerCaseRecipient.Organization.Id,
                             "Organization has no Id for this inquirer case.");
     Assert.IsNotNull(inquirerCaseRecipient.Recipient, "No recipients for this inquirer case.");
     Assert.IsNotNullOrEmpty(inquirerCaseRecipient.Recipient.Id, "Recipient has no Id for this inquirer case.");
 }
예제 #2
0
 private CloseCase GetClosingCase(InquirerCaseRecipient recipient, string comment)
 {
     return(new CloseCase {
         ClosingComments = new[] {
             new ClosingCaseCommentToRecipient {
                 AreaType = Constants.AreaType.AFFECTED.ToString(),
                 Comment = comment ?? "Här är en första kommentar!",
                 RecipientId = recipient.Recipient.Id
             }
         }
     });
 }