public void MSASAIRS_S03_TC03_EmbeddedMessageAttachment()
{
#region Send a mail with an e-mail messsage attachment
string subject = Common.GenerateResourceName(Site, "Subject");
string body = Common.GenerateResourceName(Site, "Body");
this.SendEmail(EmailType.EmbeddedAttachment, subject, body);
#endregion
#region Verify requirements
DataStructures.Sync syncItem = this.GetSyncResult(subject, this.User2Information.InboxCollectionId, null, null, null);
this.VerifyMethodElementValue(syncItem.Email, 5);
DataStructures.ItemOperations itemOperationsItem = this.GetItemOperationsResult(this.User2Information.InboxCollectionId, syncItem.ServerId, null, null, null, null);
this.VerifyMethodElementValue(itemOperationsItem.Email, 5);
DataStructures.Search searchItem = this.GetSearchResult(subject, this.User2Information.InboxCollectionId, itemOperationsItem.Email.ConversationId, null, null);
this.VerifyMethodElementValue(searchItem.Email, 5);
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASAIRS_R2299");
// Verify MS-ASAIRS requirement: MS-ASAIRS_R2299
Site.CaptureRequirementIfIsTrue(
((Response.AttachmentsAttachment)syncItem.Email.Attachments.Items[0]).DisplayName.EndsWith(".eml", System.StringComparison.CurrentCultureIgnoreCase),
2299,
@"[In Method (Attachment)] [The value] 5 [of the Method element] meaning ""Embedded message"" indicates that the attachment is an e-mail message, and that the attachment file has an .eml extension.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASAIRS_R100298");
// Verify MS-ASAIRS requirement: MS-ASAIRS_R100298
Site.CaptureRequirementIfIsFalse(
((Response.AttachmentsAttachment)syncItem.Email.Attachments.Items[0]).IsInlineSpecified,
100298,
@"[In IsInline (Attachment)] If the value[IsInline] is FALSE, then the attachment is not embedded in the message.");
#endregion
}
#endregion