C# Class Microsoft.Protocols.TestSuites.MS_ASCMD.TestSuiteBase

A bass class for scenario class.
Inheritance: Microsoft.Protocols.TestTools.TestClassBase
显示文件 Open project: OfficeDev/Interop-TestSuites

Protected Methods

Method Description
CheckEmail ( string collectionId, string subject, Request options ) : SyncResponse

Check if an email has been in the specified folder with options.

CheckMeetingForwardNotification ( UserInformation userInformation, string notificationSubject ) : void

Check the meeting forward notification mail which is sent from server to User.

ClearDevice ( string userName, string userPassword, string domain ) : void

Clear a user's ActiveSync device, this user should have permission to delete ActiveSync device.

CreateAddContactCommand ( string firstName, string middleName, string lastName, string fileAs, string jobTitle ) : SyncCollectionAdd

Create a request to add a contact with job title.

CreateCalendar ( string subject, string attendeeEmailAddress, Calendar createdCalendar ) : Calendar

Create one sample calendar object.

CreateDefaultOofRequest ( ) : SettingsRequest

Create one OOF request with empty Settings

CreateEmptySyncRequest ( string collectionId ) : SyncRequest

Create an empty Sync request.

CreateEmptySyncRequest ( string collectionId, int filterType ) : SyncRequest

Create an empty Sync request with filter type.

CreateFolder ( byte folderType, string folderName, string parentFolderID ) : string

Create folder.

CreateGetItemEstimateRequest ( string syncKey, string collectionId, Request options ) : GetItemEstimateRequest

This method is used to create GetItemEstimate request.

CreateMIME ( string from, string to, string subject, string body ) : string

Create MIME for SendMail command.

CreateMeetingResponseRequest ( byte userResponse, string collectionID, string requestID, string instanceID ) : MeetingResponseRequest

Create a MeetingResponse request.

CreateMoveItemsRequest ( string srcMsgId, string srcFldId, string dstFldId ) : MoveItemsRequest

This method is used to create MoveItems request.

CreateOofMessage ( string bodyType, string enabled, string replyMessage ) : OofMessage

Create default OOF message

CreateSendMailRequest ( string from, string to, string cc, string bcc, string subject, string content ) : SendMailRequest

Create a SendMail request.

CreateSmartForwardRequest ( string folderId, string serverId, string from, string to, string cc, string bcc, string subject, string content ) : SmartForwardRequest

Create a SmartForward request.

CreateSmartReplyRequest ( string folderID, string serverID, string from, string to, string cc, string bcc, string subject, string content ) : SmartReplyRequest

Create a SmartReply request.

CreateSyncAddRequest ( string syncKey, string collectionId, Request syncCollectionAdd ) : SyncRequest

This method is used to create a Sync add request

CreateSyncDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest

Create a Sync delete operation request which would be used to move deleted items to the Deleted Items folder.

CreateSyncPermanentDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest

Create a Sync delete operation request which would be used to delete items permanently.

CreateiCalendarFormatContent ( Calendar calendar ) : string

Create iCalendar format string from one calendar instance.

DeleteFolder ( Collection collectionIDList ) : void

Delete folder with specified collectionID.

FindServerId ( SyncResponse responseSync, string field, string fieldValue ) : string

This method is used to search serverId from SyncResponse.

FindServerIdList ( SyncResponse responseSync, string field, string fieldValue ) : Collection

This method is used to search serverId from SyncResponse.

FolderSync ( ) : FolderSyncResponse

Synchronizes the folder hierarchy.

GenerateDefaultProvisionRequest ( ) : ProvisionRequest

Generate a Provision request.

GenerateDeviceInformation ( ) : DeviceInformation

Generate one device information.

GetAddApplicationData ( SyncResponse syncResponse, Response field, string fieldValue ) : SyncCollectionsCollectionCommandsAddApplicationData

Get the application data of an item specified by field.

GetAppliesToExternalKnownOofMessage ( SettingsResponse settingsResponse ) : OofMessage

Get AppliesToExternalKnown OOF message from SettingsResponse

GetAppliesToExternalUnknownOofMessage ( SettingsResponse settingsResponse ) : OofMessage

Get AppliesToExternalUnknown OOF message from SettingsResponse

GetAppliesToInternalOofMessage ( SettingsResponse settingsResponse ) : OofMessage

Get AppliesToInternal OOF message from SettingsResponse

GetCollectionId ( FolderSyncResponse folderSyncResponse, string folderName ) : string

Use this method to get a ServerId.

GetCollectionItem ( SyncResponse syncResponse, Response element ) : object

Get an object related to a specified ItemsChoiceType10 value.

GetDataFromResponseBodyElement ( SyncResponse syncResponse, string serverId ) : string

Get data from sync response BODY element

GetElementValueFromSyncResponse ( SyncResponse syncResponse, string serverId, Response elementType ) : object

Get element value from Sync response

GetEmailAttachments ( SyncResponse syncResponse, string subject ) : Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[]

Get the attachments of an email.

GetFolderCreateResponse ( string syncKey, byte folderType, string folderName, string parentFolderID ) : FolderCreateResponse

Get FolderCreate command response.

GetInitialSyncResponse ( string collectionId ) : SyncResponse

Establishes a synchronization relationship with the server and initializes the synchronization state.

GetItemServerIdFromSpecialFolder ( string folderID, string subject ) : string

Confirm the item with specified subject exist in folder.

GetMailItem ( string folderID, string subject ) : SyncResponse

Get email with special subject.

GetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo ) : string

Get the value of SUT's AccessRights property.

GetOofSettings ( ) : SettingsResponse

Get OOF settings

GetStatusCode ( string responseDataXml ) : string

Get the Status value in a response returned by the SendStringRequest operation.

GetSyncResult ( string emailSubject, string folderCollectionId, Request bodyPreference ) : SyncStore

Get the specified email item.

RecordCaseRelativeFolders ( UserInformation userInformation ) : void

Record the user name, folder collection ID that need to be deleted.

RecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : void

Record the user name, folder collectionId and subjects the current test case impacts.

RecordDeviceInfoChanged ( ) : void

Record user has changed device information.

RecordPolicyKeyChanged ( ) : void

Record user has changed PolicyKey.

RemoveRecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : bool

Remove items with subject that the current test case doesn't need.

SendEmailWithAttachment ( string subject, string body ) : void

Send an email with a normal attachment

SendMailAndFolderSync ( ) : string

User2 sends mail to User1 and does FolderSync in User1's mailbox.

SendMeetingRequest ( string subject, Calendar calendar ) : void

Send a meeting request.

SendPlainTextEmail ( string accountID, string emailSubject, string senderName, string recipientName, string content ) : SendMailResponse

Send a plain text email between User1 and User2.

SendWeeklyRecurrenceMeetingRequest ( string meetingRequestSubject, string recipientEmailAddress ) : void

Send a weekly meeting request.

SetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo, string permission ) : void

Set SUT's AccessRights property to a specified value.

SwitchUser ( UserInformation userInformation ) : void

Change user to call FolderSync command to synchronize the collection hierarchy.

Sync ( SyncRequest request, bool isResyncNeeded = true ) : SyncResponse

Synchronizes changes in a collection between the client and the server.

SyncChanges ( string collectionID, bool isResyncNeeded = true ) : SyncResponse

Synchronize the changes of the specific folder.

SyncChanges ( string syncKey, string collectionID, bool isResyncNeeded = true ) : SyncResponse

Synchronize the changes from last synchronization in specific folder.

TestCleanup ( ) : void

Clean up the environment.

TestInitialize ( ) : void

Initialize the test suite.

Private Methods

Method Description
ClearUserCreateItems ( UserInformation userInformation ) : void

Clear all user created items

DeleteItemsInFolder ( UserInformation userInformation ) : void

Delete all the user created items

GetSyncAddItem ( SyncStore syncResult, string subject ) : Sync

Get the specified email item from the sync add response by using the subject as the search criteria.

RevertOofSettings ( ) : void

Revert the settings of Oof message.

SetMeetingProperties ( string subject, string attendeeEmailAddress, ITestSite testSite ) : object>.Dictionary

Set the value of common meeting properties

Method Details

CheckEmail() protected method

Check if an email has been in the specified folder with options.
protected CheckEmail ( string collectionId, string subject, Request options ) : SyncResponse
collectionId string The collection Id of the folder.
subject string The email subject.
options Microsoft.Protocols.TestSuites.Common.Request The Options element to filter the items in the Sync response.
return SyncResponse

CheckMeetingForwardNotification() protected method

Check the meeting forward notification mail which is sent from server to User.
protected CheckMeetingForwardNotification ( UserInformation userInformation, string notificationSubject ) : void
userInformation UserInformation The user who received notification
notificationSubject string The notification mail subject
return void

ClearDevice() protected method

Clear a user's ActiveSync device, this user should have permission to delete ActiveSync device.
protected ClearDevice ( string userName, string userPassword, string domain ) : void
userName string The user name.
userPassword string The user password.
domain string The user domain.
return void

CreateAddContactCommand() protected method

Create a request to add a contact with job title.
protected CreateAddContactCommand ( string firstName, string middleName, string lastName, string fileAs, string jobTitle ) : SyncCollectionAdd
firstName string The first name of the contact.
middleName string The middle name of the contact.
lastName string The last name of the contact.
fileAs string The filing string for the contact.
jobTitle string The job title of the contact.
return Microsoft.Protocols.TestSuites.Common.Request.SyncCollectionAdd

CreateCalendar() protected method

Create one sample calendar object.
protected CreateCalendar ( string subject, string attendeeEmailAddress, Calendar createdCalendar ) : Calendar
subject string Meeting subject.
attendeeEmailAddress string Meeting attendee email address.
createdCalendar Calendar The calendar object
return Calendar

CreateDefaultOofRequest() protected static method

Create one OOF request with empty Settings
protected static CreateDefaultOofRequest ( ) : SettingsRequest
return SettingsRequest

CreateEmptySyncRequest() protected static method

Create an empty Sync request.
protected static CreateEmptySyncRequest ( string collectionId ) : SyncRequest
collectionId string The value of the folder collectionId.
return SyncRequest

CreateEmptySyncRequest() protected static method

Create an empty Sync request with filter type.
protected static CreateEmptySyncRequest ( string collectionId, int filterType ) : SyncRequest
collectionId string The value of the folder collectionId.
filterType int The value of the FilterType.
return SyncRequest

CreateFolder() protected method

Create folder.
protected CreateFolder ( byte folderType, string folderName, string parentFolderID ) : string
folderType byte The folder type.
folderName string The folder name.
parentFolderID string The parent folder serverID.
return string

CreateGetItemEstimateRequest() protected static method

This method is used to create GetItemEstimate request.
protected static CreateGetItemEstimateRequest ( string syncKey, string collectionId, Request options ) : GetItemEstimateRequest
syncKey string The synchronization state of a collection.
collectionId string The collection id of the folder.
options Microsoft.Protocols.TestSuites.Common.Request Contains elements that filter the results.
return GetItemEstimateRequest

CreateMIME() protected static method

Create MIME for SendMail command.
protected static CreateMIME ( string from, string to, string subject, string body ) : string
from string The email address of sender.
to string The email address of recipient.
subject string The email subject.
body string The email body content.
return string

CreateMeetingResponseRequest() protected static method

Create a MeetingResponse request.
protected static CreateMeetingResponseRequest ( byte userResponse, string collectionID, string requestID, string instanceID ) : MeetingResponseRequest
userResponse byte The way the user response the meeting.
collectionID string The collection id of the folder that contains the meeting request.
requestID string The server ID of the meeting request message item.
instanceID string The instance ID of the recurring meeting to be modified.
return Microsoft.Protocols.TestSuites.Common.Request.MeetingResponseRequest

CreateMoveItemsRequest() protected static method

This method is used to create MoveItems request.
protected static CreateMoveItemsRequest ( string srcMsgId, string srcFldId, string dstFldId ) : MoveItemsRequest
srcMsgId string The server ID of the item to be moved.
srcFldId string The server ID of the source folder.
dstFldId string The server ID of the destination folder.
return MoveItemsRequest

CreateOofMessage() protected static method

Create default OOF message
protected static CreateOofMessage ( string bodyType, string enabled, string replyMessage ) : OofMessage
bodyType string The OOF message body type
enabled string The enabled value
replyMessage string The replyMessage
return Microsoft.Protocols.TestSuites.Common.Request.OofMessage

CreateSendMailRequest() protected static method

Create a SendMail request.
protected static CreateSendMailRequest ( string from, string to, string cc, string bcc, string subject, string content ) : SendMailRequest
from string The value of the From element.
to string The value of the To element.
cc string The value of the Cc element.
bcc string The value of the Bcc element.
subject string The value of the Subject element.
content string The value of the Content element.
return SendMailRequest

CreateSmartForwardRequest() protected method

Create a SmartForward request.
protected CreateSmartForwardRequest ( string folderId, string serverId, string from, string to, string cc, string bcc, string subject, string content ) : SmartForwardRequest
folderId string The value of the FolderId element.
serverId string The value of the ServerId element.
from string The value of the From element.
to string The value of the To element.
cc string The value of the Cc element.
bcc string The value of the Bcc element.
subject string The value of the Subject element.
content string The value of the Content element.
return SmartForwardRequest

CreateSmartReplyRequest() protected static method

Create a SmartReply request.
protected static CreateSmartReplyRequest ( string folderID, string serverID, string from, string to, string cc, string bcc, string subject, string content ) : SmartReplyRequest
folderID string The value of the FolderID element
serverID string The value of the ServerId element.
from string The value of the From element.
to string The value of the To element.
cc string The value of the Cc element.
bcc string The value of the Bcc element.
subject string The value of the Subject element.
content string The value of the Content element.
return SmartReplyRequest

CreateSyncAddRequest() protected static method

This method is used to create a Sync add request
protected static CreateSyncAddRequest ( string syncKey, string collectionId, Request syncCollectionAdd ) : SyncRequest
syncKey string The value of the SyncKey element.
collectionId string The value of the CollectionID element.
syncCollectionAdd Microsoft.Protocols.TestSuites.Common.Request An instance of the SyncCollectionAdd.
return SyncRequest

CreateSyncDeleteRequest() protected static method

Create a Sync delete operation request which would be used to move deleted items to the Deleted Items folder.
protected static CreateSyncDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest
syncKey string The synchronization state of a collection.
collectionId string The server ID of the folder.
serverId string An server ID of the item which will be deleted.
return SyncRequest

CreateSyncPermanentDeleteRequest() protected static method

Create a Sync delete operation request which would be used to delete items permanently.
protected static CreateSyncPermanentDeleteRequest ( string syncKey, string collectionId, string serverId ) : SyncRequest
syncKey string The synchronization state of a collection.
collectionId string The server ID of the folder.
serverId string An server ID of the item which will be deleted.
return SyncRequest

CreateiCalendarFormatContent() protected static method

Create iCalendar format string from one calendar instance.
protected static CreateiCalendarFormatContent ( Calendar calendar ) : string
calendar Calendar The instance of Calendar class.
return string

DeleteFolder() protected method

Delete folder with specified collectionID.
protected DeleteFolder ( Collection collectionIDList ) : void
collectionIDList Collection The collectionID of folder that need to be deleted.
return void

FindServerId() protected static method

This method is used to search serverId from SyncResponse.
protected static FindServerId ( SyncResponse responseSync, string field, string fieldValue ) : string
responseSync SyncResponse An instance of the SyncResponse.
field string The name of the field.
fieldValue string The value of item.
return string

FindServerIdList() protected static method

This method is used to search serverId from SyncResponse.
protected static FindServerIdList ( SyncResponse responseSync, string field, string fieldValue ) : Collection
responseSync SyncResponse An instance of the SyncResponse.
field string The value of the item name.
fieldValue string The value of item.
return Collection

FolderSync() protected method

Synchronizes the folder hierarchy.
protected FolderSync ( ) : FolderSyncResponse
return FolderSyncResponse

GenerateDefaultProvisionRequest() protected static method

Generate a Provision request.
protected static GenerateDefaultProvisionRequest ( ) : ProvisionRequest
return ProvisionRequest

GenerateDeviceInformation() protected static method

Generate one device information.
protected static GenerateDeviceInformation ( ) : DeviceInformation
return Microsoft.Protocols.TestSuites.Common.Request.DeviceInformation

GetAddApplicationData() protected static method

Get the application data of an item specified by field.
protected static GetAddApplicationData ( SyncResponse syncResponse, Response field, string fieldValue ) : SyncCollectionsCollectionCommandsAddApplicationData
syncResponse SyncResponse The Sync command response.
field Microsoft.Protocols.TestSuites.Common.Response The element name of the item.
fieldValue string The value of the item
return Microsoft.Protocols.TestSuites.Common.Response.SyncCollectionsCollectionCommandsAddApplicationData

GetAppliesToExternalKnownOofMessage() protected static method

Get AppliesToExternalKnown OOF message from SettingsResponse
protected static GetAppliesToExternalKnownOofMessage ( SettingsResponse settingsResponse ) : OofMessage
settingsResponse SettingsResponse The Settings response
return Microsoft.Protocols.TestSuites.Common.Response.OofMessage

GetAppliesToExternalUnknownOofMessage() protected static method

Get AppliesToExternalUnknown OOF message from SettingsResponse
protected static GetAppliesToExternalUnknownOofMessage ( SettingsResponse settingsResponse ) : OofMessage
settingsResponse SettingsResponse The settings response
return Microsoft.Protocols.TestSuites.Common.Response.OofMessage

GetAppliesToInternalOofMessage() protected static method

Get AppliesToInternal OOF message from SettingsResponse
protected static GetAppliesToInternalOofMessage ( SettingsResponse settingsResponse ) : OofMessage
settingsResponse SettingsResponse The settings response
return Microsoft.Protocols.TestSuites.Common.Response.OofMessage

GetCollectionId() protected static method

Use this method to get a ServerId.
protected static GetCollectionId ( FolderSyncResponse folderSyncResponse, string folderName ) : string
folderSyncResponse FolderSyncResponse An instance of the FolderSyncResponse.
folderName string Folder name.
return string

GetCollectionItem() protected static method

Get an object related to a specified ItemsChoiceType10 value.
protected static GetCollectionItem ( SyncResponse syncResponse, Response element ) : object
syncResponse SyncResponse A Sync response.
element Microsoft.Protocols.TestSuites.Common.Response An element of ItemsChoiceType10 type, which specifies which object in the Sync response to be retrieved.
return object

GetDataFromResponseBodyElement() protected static method

Get data from sync response BODY element
protected static GetDataFromResponseBodyElement ( SyncResponse syncResponse, string serverId ) : string
syncResponse SyncResponse An instance of the SyncResponse
serverId string The value of the ServerId element.
return string

GetElementValueFromSyncResponse() protected static method

Get element value from Sync response
protected static GetElementValueFromSyncResponse ( SyncResponse syncResponse, string serverId, Response elementType ) : object
syncResponse SyncResponse The Sync response
serverId string The specified serverId
elementType Microsoft.Protocols.TestSuites.Common.Response The element type
return object

GetEmailAttachments() protected method

Get the attachments of an email.
protected GetEmailAttachments ( SyncResponse syncResponse, string subject ) : Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[]
syncResponse SyncResponse The Sync command response.
subject string The email subject.
return Microsoft.Protocols.TestSuites.Common.Response.AttachmentsAttachment[]

GetFolderCreateResponse() protected method

Get FolderCreate command response.
protected GetFolderCreateResponse ( string syncKey, byte folderType, string folderName, string parentFolderID ) : FolderCreateResponse
syncKey string The folder SyncKey.
folderType byte The folder type.
folderName string The folder name.
parentFolderID string The parent folder serverID.
return FolderCreateResponse

GetInitialSyncResponse() protected method

Establishes a synchronization relationship with the server and initializes the synchronization state.
protected GetInitialSyncResponse ( string collectionId ) : SyncResponse
collectionId string The value of the folder collectionId.
return SyncResponse

GetItemServerIdFromSpecialFolder() protected method

Confirm the item with specified subject exist in folder.
protected GetItemServerIdFromSpecialFolder ( string folderID, string subject ) : string
folderID string The folder item located.
subject string The item subject.
return string

GetMailItem() protected method

Get email with special subject.
protected GetMailItem ( string folderID, string subject ) : SyncResponse
folderID string The folderID that store mail items.
subject string Email subject.
return SyncResponse

GetMailboxFolderPermission() protected method

Get the value of SUT's AccessRights property.
protected GetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo ) : string
serverComputerName string The computer name of the server.
userInfo UserInformation The user information used to communicate with server.
return string

GetOofSettings() protected method

Get OOF settings
protected GetOofSettings ( ) : SettingsResponse
return SettingsResponse

GetStatusCode() protected method

Get the Status value in a response returned by the SendStringRequest operation.
protected GetStatusCode ( string responseDataXml ) : string
responseDataXml string The response data string returned by the SendStringRequest operation.
return string

GetSyncResult() protected method

Get the specified email item.
protected GetSyncResult ( string emailSubject, string folderCollectionId, Request bodyPreference ) : SyncStore
emailSubject string The subject of the email item.
folderCollectionId string The serverId of the default folder.
bodyPreference Microsoft.Protocols.TestSuites.Common.Request The preference information related to the type and size of information that is returned from fetching.
return Microsoft.Protocols.TestSuites.Common.DataStructures.SyncStore

RecordCaseRelativeFolders() protected static method

Record the user name, folder collection ID that need to be deleted.
protected static RecordCaseRelativeFolders ( UserInformation userInformation ) : void
userInformation UserInformation The user that current test case used.
return void

RecordCaseRelativeItems() protected static method

Record the user name, folder collectionId and subjects the current test case impacts.
protected static RecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : void
userInformation UserInformation The user that current test case used.
folderCollectionId string The collectionId of folders that the current test case impact.
return void

RecordDeviceInfoChanged() protected method

Record user has changed device information.
protected RecordDeviceInfoChanged ( ) : void
return void

RecordPolicyKeyChanged() protected method

Record user has changed PolicyKey.
protected RecordPolicyKeyChanged ( ) : void
return void

RemoveRecordCaseRelativeItems() protected static method

Remove items with subject that the current test case doesn't need.
protected static RemoveRecordCaseRelativeItems ( UserInformation userInformation, string folderCollectionId ) : bool
userInformation UserInformation The user that current test case used.
folderCollectionId string The collectionId of folders that the current test case impact.
return bool

SendEmailWithAttachment() protected method

Send an email with a normal attachment
protected SendEmailWithAttachment ( string subject, string body ) : void
subject string The subject of the mail.
body string The body of the item.
return void

SendMailAndFolderSync() protected method

User2 sends mail to User1 and does FolderSync in User1's mailbox.
protected SendMailAndFolderSync ( ) : string
return string

SendMeetingRequest() protected method

Send a meeting request.
protected SendMeetingRequest ( string subject, Calendar calendar ) : void
subject string The subject of email
calendar Calendar The meeting calendar
return void

SendPlainTextEmail() protected method

Send a plain text email between User1 and User2.
protected SendPlainTextEmail ( string accountID, string emailSubject, string senderName, string recipientName, string content ) : SendMailResponse
accountID string The account from which an email is sent.
emailSubject string Email subject.
senderName string The sender of the email.
recipientName string The receiver of the email.
content string The email content.
return SendMailResponse

SendWeeklyRecurrenceMeetingRequest() protected method

Send a weekly meeting request.
protected SendWeeklyRecurrenceMeetingRequest ( string meetingRequestSubject, string recipientEmailAddress ) : void
meetingRequestSubject string The subject of the meeting request.
recipientEmailAddress string The email address of the recipient.
return void

SetMailboxFolderPermission() protected method

Set SUT's AccessRights property to a specified value.
protected SetMailboxFolderPermission ( string serverComputerName, UserInformation userInfo, string permission ) : void
serverComputerName string The computer name of the server.
userInfo UserInformation The user information used to communicate with server.
permission string The new value of AccessRights.
return void

SwitchUser() protected method

Change user to call FolderSync command to synchronize the collection hierarchy.
protected SwitchUser ( UserInformation userInformation ) : void
userInformation UserInformation The user information that contains case related information
return void

Sync() protected method

Synchronizes changes in a collection between the client and the server.
protected Sync ( SyncRequest request, bool isResyncNeeded = true ) : SyncResponse
request SyncRequest A SyncRequest object that contains the request information.
isResyncNeeded bool A boolean value indicate whether need to re-sync when the response contains MoreAvailable.
return SyncResponse

SyncChanges() protected method

Synchronize the changes of the specific folder.
protected SyncChanges ( string collectionID, bool isResyncNeeded = true ) : SyncResponse
collectionID string Folder's collectionID.
isResyncNeeded bool A boolean value indicate whether need to re-sync when the response contains MoreAvailable.
return SyncResponse

SyncChanges() protected method

Synchronize the changes from last synchronization in specific folder.
protected SyncChanges ( string syncKey, string collectionID, bool isResyncNeeded = true ) : SyncResponse
syncKey string The sync key.
collectionID string Folder's collectionID.
isResyncNeeded bool A boolean value indicate whether need to re-sync when the response contains MoreAvailable.
return SyncResponse

TestCleanup() protected method

Clean up the environment.
protected TestCleanup ( ) : void
return void

TestInitialize() protected method

Initialize the test suite.
protected TestInitialize ( ) : void
return void