Microsoft.Protocols.TestSuites.MS_ASEMAIL.TestSuiteBase.UpdateEmailWithMoreData C# (CSharp) Method

UpdateEmailWithMoreData() protected method

Update email with more data
protected UpdateEmailWithMoreData ( string collectionId, string syncKey, bool read, string serverId, Request flag, Collection categories, string additionalElement, string insertTag ) : SendStringResponse
collectionId string The collectionId of the folder which contains the item to be updated.
syncKey string The syncKey which is returned from server
read bool The value is TRUE indicates the email has been read; a value of FALSE indicates the email has not been read
serverId string The server id of the email
flag Microsoft.Protocols.TestSuites.Common.Request The flag instance
categories Collection The list of categories
additionalElement string Additional flag element
insertTag string Additional element will insert before this tag
return SendStringResponse
        protected SendStringResponse UpdateEmailWithMoreData(string collectionId, string syncKey, bool read, string serverId, Request.Flag flag, Collection<object> categories, string additionalElement, string insertTag)
        {
            // Create normal sync request
            Request.SyncCollectionChange changeData = TestSuiteHelper.CreateSyncChangeData(read, serverId, flag, categories);
            SyncRequest syncRequest = TestSuiteHelper.CreateSyncChangeRequest(syncKey, collectionId, changeData);

            // Calls Sync command to update email with invalid sync request
            SendStringResponse result = this.EMAILAdapter.InvalidSync(syncRequest, additionalElement, insertTag);
            return result;
        }
        #endregion