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

A bass class for scenario class.
Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites

Protected Methods

Method Description
AddCreatedItemToCollection ( UserInformation userInformation, string parentFolder, string itemSubject ) : void

Add the item created in test case to the item collections needed to clean up.

CheckPreconditions ( ) : void

Checks if ActiveSync Protocol Version is "14.1" and Transport Type is "HTTPS".

GetTemplateID ( string templateName ) : string

Call Settings command to get the expected template ID for template name

SendMailAndFolderSync ( string templateID, bool saveInSentItems, UserInformation copyToUserInformation ) : string

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

SwitchUser ( UserInformation userInformation, bool syncFolderHierarchy ) : void

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

SyncChanges ( string syncKey, string collectionId, bool rightsManagementSupport ) : SyncStore

Sync changes between client and server

SyncEmail ( string subject, string collectionId, bool rightsManagementSupport, bool isRetryNeeded ) : Sync

Find an email with specific subject and folder.

TestCleanup ( ) : void

Override the base TestCleanup function

TestInitialize ( ) : void

Override the base TestInitialize function

Private Methods

Method Description
DeleteCreatedItems ( Collection itemsToDelete ) : void

Delete the specified item.

Method Details

AddCreatedItemToCollection() protected static method

Add the item created in test case to the item collections needed to clean up.
protected static AddCreatedItemToCollection ( UserInformation userInformation, string parentFolder, string itemSubject ) : void
userInformation UserInformation The identity of the user who has the item.
parentFolder string The CollectionId of the folder in which the item is placed.
itemSubject string The subject of the item to delete.
return void

CheckPreconditions() protected method

Checks if ActiveSync Protocol Version is "14.1" and Transport Type is "HTTPS".
protected CheckPreconditions ( ) : void
return void

GetTemplateID() protected method

Call Settings command to get the expected template ID for template name
protected GetTemplateID ( string templateName ) : string
templateName string A string that specifies the name of the rights policy template.
return string

SendMailAndFolderSync() protected method

User1 sends mail to User2 and does FolderSync in User2's mailbox
protected SendMailAndFolderSync ( string templateID, bool saveInSentItems, UserInformation copyToUserInformation ) : string
templateID string A string that identifies a particular rights policy template to be applied to the outgoing message.
saveInSentItems bool A boolean that represent to save the sent item in SentItems folder or not.
copyToUserInformation UserInformation The UserInformation for the Cc element.
return string

SwitchUser() protected method

Change user to call FolderSync command to synchronize the collection hierarchy.
protected SwitchUser ( UserInformation userInformation, bool syncFolderHierarchy ) : void
userInformation UserInformation The information of a user.
syncFolderHierarchy bool Whether sync folder hierarchy or not.
return void

SyncChanges() protected method

Sync changes between client and server
protected SyncChanges ( string syncKey, string collectionId, bool rightsManagementSupport ) : SyncStore
syncKey string The synchronization key returned by last request.
collectionId string Identify the folder as the collection being synchronized.
rightsManagementSupport bool A boolean value specifies whether the server will decompress and decrypt rights-managed email messages before sending them to the client or not
return Microsoft.Protocols.TestSuites.Common.DataStructures.SyncStore

SyncEmail() protected method

Find an email with specific subject and folder.
protected SyncEmail ( string subject, string collectionId, bool rightsManagementSupport, bool isRetryNeeded ) : Sync
subject string The subject of the email item.
collectionId string Identify the folder as the collection being synchronized.
rightsManagementSupport bool A boolean value specifies whether the server will decompress and decrypt rights-managed email messages before sending them to the client or not
isRetryNeeded bool A boolean value specifies whether need retry.
return Microsoft.Protocols.TestSuites.Common.DataStructures.Sync

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