C# 클래스 Microsoft.Protocols.TestSuites.MS_ASRM.TestSuiteBase

A bass class for scenario class.
상속: Microsoft.Protocols.TestTools.TestClassBase
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
DeleteCreatedItems ( Collection itemsToDelete ) : void

Delete the specified item.

메소드 상세

AddCreatedItemToCollection() 보호된 정적인 메소드

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.
리턴 void

CheckPreconditions() 보호된 메소드

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

GetTemplateID() 보호된 메소드

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.
리턴 string

SendMailAndFolderSync() 보호된 메소드

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.
리턴 string

SwitchUser() 보호된 메소드

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.
리턴 void

SyncChanges() 보호된 메소드

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
리턴 Microsoft.Protocols.TestSuites.Common.DataStructures.SyncStore

SyncEmail() 보호된 메소드

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.
리턴 Microsoft.Protocols.TestSuites.Common.DataStructures.Sync

TestCleanup() 보호된 메소드

Override the base TestCleanup function
protected TestCleanup ( ) : void
리턴 void

TestInitialize() 보호된 메소드

Override the base TestInitialize function
protected TestInitialize ( ) : void
리턴 void