public void MSASCMD_S08_TC20_ItemOperations_Status16()
{
Site.Assume.AreNotEqual<string>("12.1", Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "Recipient Information cache is not supported when MS-ASProtocolVersion is 12.1. MS-ASProtocolVersion header value is determined using Common PTFConfig property named ActiveSyncProtocolVersion.");
#region Call ItemOperations command which contains the EmptyFolderContents element without DeleteSubFolders element.
ItemOperationsRequest itemOperationsRequest = new ItemOperationsRequest
{
RequestData = new Request.ItemOperations
{
Items = new object[]
{
new Request.ItemOperationsEmptyFolderContents
{
CollectionId = "RI"
}
}
}
};
ItemOperationsResponse itemOperationsResponse = this.CMDAdapter.ItemOperations(itemOperationsRequest, DeliveryMethodForFetch.Inline);
Site.Assert.AreEqual<string>("1", itemOperationsResponse.ResponseData.Status, "The Status element of the ItemOperations response should be 1.");
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCMD_R4167");
// Verify MS-ASCMD requirement: MS-ASCMD_R4167
Site.CaptureRequirementIfAreEqual<string>(
"16",
itemOperationsResponse.ResponseData.Response.EmptyFolderContents[0].Status,
4167,
@"[In Status(ItemOperations)] [The meaning of the status value] 16 [is] Access to the resource is denied.");
#endregion
}
#endregion