C# Класс Microsoft.Protocols.TestSuites.MS_ASCNTC.TestSuiteHelper

A static class contains all helper methods used in test cases.
Показать файл Открыть проект Примеры использования класса

Приватные методы

Метод Описание
CreateInitialSyncRequest ( string collectionId, Request supportedElements ) : SyncRequest

Create an initial Sync request by using the specified collection Id.

CreateItemOperationsRequest ( string collectionId, string serverId, Request bodyPreference, Request schema ) : ItemOperationsRequest

Create an ItemOperations command request.

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

Create MIME for SendMail command.

CreateSearchRequest ( string query, string collectionId, Request bodyPreference ) : SearchRequest

Create a Search request.

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

Create a Sync Add request.

CreateSyncChangeRequest ( string syncKey, string collectionId, Request changeData ) : SyncRequest

Create a Sync Change request by using the specified sync key, folder collectionId and change application data.

CreateSyncCollection ( string syncKey, string collectionId ) : SyncCollection

Create an instance of SyncCollection

CreateSyncRequest ( string syncKey, string collectionId, Request bodyPreference ) : SyncRequest

Create a generic Sync request without command references by using the specified sync key, folder collectionId and body preference option.

GetSearchItem ( Microsoft.Protocols.TestSuites.Common.DataStructures searchStore, string fileAs ) : Search

Get the email item from the Search response by using the subject as the search criteria.

GetSyncAddItem ( Microsoft.Protocols.TestSuites.Common.DataStructures syncStore, string fileAs ) : Sync

Get the specified email item from the Sync Add response by using the subject/FileAs.

GetSyncChangeItem ( Microsoft.Protocols.TestSuites.Common.DataStructures syncStore, string fileAs ) : Sync

Get the specified email item from the Sync Change response by using the subject.

IsOnlySpecifiedElementExist ( XmlElement rawResponseXml, string tagName, string elementName ) : bool

Check if the response message only contains the specified element in the specified xml tag.