public void MSASCMD_S21_TC07_CommonStatusCode_102()
        {
            Site.Assume.AreNotEqual <string>("12.1", Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "This test case is not supported when the MS-ASProtocolVersion header is set to 12.1.. MS-ASProtocolVersion header value is determined using Common PTFConfig property named ActiveSyncProtocolVersion.");

            #region call FolderSync command containing a FileReference element which is not defined in FolderSync request.
            FolderSyncRequest  request     = new FolderSyncRequest();
            Request.FolderSync requestData = new Request.FolderSync {
                FileReference = "0", FileReferenceSpecified = true
            };
            request.RequestData = requestData;

            FolderSyncResponse folderSyncResponse = this.CMDAdapter.FolderSync(request);
            this.Site.CaptureRequirementIfAreEqual <int>(
                102,
                int.Parse(folderSyncResponse.ResponseData.Status),
                4815,
                @"[In Common Status Codes] When the protocol version is 14.0, 14.1 or 16.0,  [The meaning of the status value 102 is] The request contains WBXML but it could not be decoded into XML.");
            #endregion
        }
예제 #2
0
 /// <summary>
 /// Creates a folder Sync request using specified syncKey
 /// </summary>
 /// <param name="syncKey">Specified sync key</param>
 /// <returns>A FolderSyncRequest instance</returns>
 public static FolderSyncRequest CreateFolderSyncRequest(string syncKey)
 {
     FolderSyncRequest request = new FolderSyncRequest();
     Request.FolderSync requestData = new Request.FolderSync { SyncKey = syncKey };
     request.RequestData = requestData;
     return request;
 }