public void MSASCMD_S08_TC17_ItemOperations_Status15()
{
#region Call method ItemOperations to get data of an attachment with invalid attachment ID.
// Initialize a Fetch element.
Request.ItemOperationsFetch itemOperationsFetch = new Request.ItemOperationsFetch
{
FileReference = "InvalidAttachmentID",
Store = SearchName.Mailbox.ToString()
};
// Create an ItemOperations command request.
ItemOperationsRequest itemOperationsRequest = Common.CreateItemOperationsRequest(new object[] { itemOperationsFetch });
// Send request and get response.
ItemOperationsResponse itemOperationsResponse = this.CMDAdapter.ItemOperations(itemOperationsRequest, DeliveryMethodForFetch.Inline);
Response.ItemOperationsResponseFetch fetch = this.GetFetchElement(itemOperationsResponse);
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCMD_R4166");
// Verify MS-ASCMD requirement: MS-ASCMD_R4166
Site.CaptureRequirementIfAreEqual<string>(
"15",
fetch.Status,
4166,
@"[In Status(ItemOperations)] [The meaning of the status value] 15 [is] Attachment fetch provider - Attachment or attachment ID is invalid.");
#endregion
}