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

The base class of scenario class.
Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites

Protected Methods

Method Description
GetAllContentItem ( string subject, string collectionId ) : Sync

Get the non-truncated item data.

GetInitialSyncKey ( string collectionId ) : string

Get the initial syncKey of the specified folder.

GetItemOperationsResult ( string collectionId, string serverId, string fileReference, Request bodyPreferences, Request bodyPartPreferences, DeliveryMethodForFetch deliveryMethod ) : ItemOperations

Fetch item with specified ServerID on the server.

GetSearchResult ( string subject, string collectionId, string conversationId, Request bodyPreferences, Request bodyPartPreferences ) : Search

Search item with specified criteria on the server.

GetSyncResult ( string subject, string collectionId, object commands, Request bodyPreferences, Request bodyPartPreferences ) : Sync

Synchronize item with specified subject.

RecordCaseRelativeItems ( string userName, string folderCollectionId ) : void

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

SendEmail ( EmailType emailType, string subject, string body ) : void

The method is used to send a mail

SwitchUser ( UserInformation userInformation, bool isFolderSyncNeeded ) : void

Change user to call active sync operations and resynchronize the collection hierarchy.

TestCleanup ( ) : void

Override the base TestCleanup function

TestInitialize ( ) : void

Override the base TestInitialize function

Private Methods

Method Description
DeleteItemsInFolder ( Collection createdItemsCollection ) : void

Delete all the items in a folder.

FolderSync ( ) : FolderSyncResponse

This method is used to synchronize the folder collection hierarchy.

Method Details

GetAllContentItem() protected method

Get the non-truncated item data.
protected GetAllContentItem ( string subject, string collectionId ) : Sync
subject string The subject of the item.
collectionId string The server id of the folder which contains the specified item.
return Microsoft.Protocols.TestSuites.Common.DataStructures.Sync

GetInitialSyncKey() protected method

Get the initial syncKey of the specified folder.
protected GetInitialSyncKey ( string collectionId ) : string
collectionId string The collection id of the specified folder.
return string

GetItemOperationsResult() protected method

Fetch item with specified ServerID on the server.
protected GetItemOperationsResult ( string collectionId, string serverId, string fileReference, Request bodyPreferences, Request bodyPartPreferences, DeliveryMethodForFetch deliveryMethod ) : ItemOperations
collectionId string The collection id.
serverId string The server id of the mail.
fileReference string The file reference of the attachment.
bodyPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPreference in the options element.
bodyPartPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPartPreference in the options element.
deliveryMethod DeliveryMethodForFetch Indicate whether use multipart or inline method to send the request.
return Microsoft.Protocols.TestSuites.Common.DataStructures.ItemOperations

GetSearchResult() protected method

Search item with specified criteria on the server.
protected GetSearchResult ( string subject, string collectionId, string conversationId, Request bodyPreferences, Request bodyPartPreferences ) : Search
subject string The subject of the item.
collectionId string The collection id.
conversationId string The conversation for which to search.
bodyPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPreference in the options element.
bodyPartPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPartPreference in the options element.
return Microsoft.Protocols.TestSuites.Common.DataStructures.Search

GetSyncResult() protected method

Synchronize item with specified subject.
protected GetSyncResult ( string subject, string collectionId, object commands, Request bodyPreferences, Request bodyPartPreferences ) : Sync
subject string The subject of the item.
collectionId string The collection id which to sync with.
commands object The sync commands.
bodyPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPreference in the options element.
bodyPartPreferences Microsoft.Protocols.TestSuites.Common.Request The bodyPartPreference in the options element.
return Microsoft.Protocols.TestSuites.Common.DataStructures.Sync

RecordCaseRelativeItems() protected method

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

SendEmail() protected method

The method is used to send a mail
protected SendEmail ( EmailType emailType, string subject, string body ) : void
emailType EmailType The type of the email.
subject string The subject of the mail.
body string The body of the item.
return void

SwitchUser() protected method

Change user to call active sync operations and resynchronize the collection hierarchy.
protected SwitchUser ( UserInformation userInformation, bool isFolderSyncNeeded ) : void
userInformation UserInformation The information of the user that will switch to.
isFolderSyncNeeded bool A boolean value indicates whether needs to synchronize the folder hierarchy.
return void

TestCleanup() protected method

Override the base TestCleanup function
protected TestCleanup ( ) : void
return void

TestInitialize() protected method

Override the base TestInitialize function
protected TestInitialize ( ) : void
return void