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

A bass class for scenario class.
Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Afficher le fichier Open project: OfficeDev/Interop-TestSuites

Méthodes protégées

Méthode 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

Méthode Description
DeleteCreatedItems ( Collection itemsToDelete ) : void

Delete the specified item.

Method Details

AddCreatedItemToCollection() protected static méthode

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.
Résultat void

CheckPreconditions() protected méthode

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

GetTemplateID() protected méthode

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.
Résultat string

SendMailAndFolderSync() protected méthode

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.
Résultat string

SwitchUser() protected méthode

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.
Résultat void

SyncChanges() protected méthode

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
Résultat Microsoft.Protocols.TestSuites.Common.DataStructures.SyncStore

SyncEmail() protected méthode

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.
Résultat Microsoft.Protocols.TestSuites.Common.DataStructures.Sync

TestCleanup() protected méthode

Override the base TestCleanup function
protected TestCleanup ( ) : void
Résultat void

TestInitialize() protected méthode

Override the base TestInitialize function
protected TestInitialize ( ) : void
Résultat void