Inheritance: BaseRequestType
        public void MSOXWSSYNC_S04_TC01_SyncFolderItems_WithoutOptionalElements()
        {
            // Add drafts folder into list
            this.FolderIdNameType.Add(DistinguishedFolderIdNameType.drafts);
            SyncFolderItemsType[] request = new SyncFolderItemsType[this.FolderIdNameType.Count];

            for (int i = 0; i < this.FolderIdNameType.Count; i++)
            {
                request[i] = this.CreateSyncFolderItemsRequestWithoutOptionalElements(this.FolderIdNameType[i], DefaultShapeNamesType.AllProperties);
            }

            this.VerifySyncFolderItemsOperation(request, false);
        }
        public void MSOXWSSYNC_S04_TC02_SyncFolderItems_WithAllOptionalElements()
        {
            // Add drafts folder into list
            this.FolderIdNameType.Add(DistinguishedFolderIdNameType.drafts);
            SyncFolderItemsType[] request = new SyncFolderItemsType[this.FolderIdNameType.Count];

            for (int i = 0; i < this.FolderIdNameType.Count; i++)
            {
                request[i] = this.CreateSyncFolderItemsRequestWithoutOptionalElements(this.FolderIdNameType[i], DefaultShapeNamesType.IdOnly);

                if (Common.IsRequirementEnabled(37811008, this.Site))
                {
                    request[i].SyncScopeSpecified = true;
                    request[i].SyncScope = SyncFolderItemsScopeType.NormalItems;
                }

                // Set the value of SyncState element and Ignore element
                request[i].SyncState = string.Empty;

                // It will be rewrite to a new value in test case
                request[i].Ignore = null;

                // Set the value of AdditionalProperties element
                request[i].ItemShape.AdditionalProperties = new BasePathToElementType[] 
                { 
                    new PathToUnindexedFieldType
                    {
                        FieldURI = UnindexedFieldURIType.itemSubject
                    } 
                };

                if (Common.IsRequirementEnabled(37809, this.Site))
                {
                    request[i].ItemShape.InlineImageUrlTemplate = "Test Template";
                }

            }

            this.VerifySyncFolderItemsOperation(request, true);
        }
Exemplo n.º 3
0
 /// <remarks/>
 public void SyncFolderItemsAsync(SyncFolderItemsType SyncFolderItems1, object userState)
 {
     if ((this.SyncFolderItemsOperationCompleted == null))
     {
         this.SyncFolderItemsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSyncFolderItemsOperationCompleted);
     }
     this.InvokeAsync("SyncFolderItems", new object[] {
             SyncFolderItems1}, this.SyncFolderItemsOperationCompleted, userState);
 }
Exemplo n.º 4
0
 /// <remarks/>
 public void SyncFolderItemsAsync(SyncFolderItemsType SyncFolderItems1)
 {
     this.SyncFolderItemsAsync(SyncFolderItems1, null);
 }
Exemplo n.º 5
0
 /// <remarks/>
 public System.IAsyncResult BeginSyncFolderItems(SyncFolderItemsType SyncFolderItems1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("SyncFolderItems", new object[] {
             SyncFolderItems1}, callback, asyncState);
 }
        /// <summary>
        /// Gets synchronization information that enables items to be synchronized between a client and a server.
        /// </summary>
        /// <param name="request">A request to the SyncFolderItems operation.</param>
        /// <returns>A response from the SyncFolderItems operation.</returns>
        public SyncFolderItemsResponseType SyncFolderItems(SyncFolderItemsType request)
        {
            if (request == null)
            {
                throw new ArgumentException("The SyncFolderItems request should not be null.");
            }

            SyncFolderItemsResponseType response = this.exchangeServiceBinding.SyncFolderItems(request);
            Site.Assert.IsNotNull(response, "If the operation is successful, the response should not be null.");

            this.VerifySoapVersion();
            this.VerifyTransportType();
            this.VerifySyncFolderItemsResponse(response, this.exchangeServiceBinding.IsSchemaValidated);
            return response;
        }