C# Class Microsoft.Protocols.TestSuites.MS_ASCAL.TestSuiteHelper

A static class contains all helper methods used in test cases.
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Private Methods

Method Description
CreateAttendeesRequired ( string attendeeEmailAddress, string attendeeName ) : Attendees

Create a Request.Attendees instance with required child elements.

CreateCalendarBody ( byte bodyType, string content ) : Body

Create a Request.Body instance.

CreateCalendarCategories ( string calendarCategory ) : Categories

Create a Request.Categories instance.

CreateExceptionRequired ( string exceptionStartTime ) : ExceptionsException

Create a Request.ExceptionsException instance with ExceptionStartTime elements.

CreateItemOperationsEmptyFolderContentsRequest ( string collectionId ) : ItemOperationsRequest

Builds an ItemOperations request to empty a folder of all its items by using the specified collectionId and options In general, returns the XML formatted ItemOperations request as follows:

CreateItemOperationsFetchRequest ( string collectionId, List serverIds, Request schema ) : ItemOperationsRequest

Builds a ItemOperations request to fetch the whole content of a single mail item by using the specified collectionId, emailServerId,bodyPreference and bodyPartPreference In general, returns the XML formatted ItemOperations request as follows:

CreateMeetingRequestMime ( string from, string to, string subject, string body, string icalendarContent ) : string

Create a meeting request mime

CreateSearchRequest ( string storeName, string keyword, string collectionId ) : SearchRequest

Builds a Search request on the Mailbox store by using the specified keyword and folder collection ID In general, returns the XML formatted search request as follows:

CreateSendMailRequest ( string clientId, bool saveInSentItems, string mime ) : SendMailRequest

Builds a SendMail request by using the specified client Id, copyToSentItems option and mail mime content. In general, returns the XML formatted Sync request as follows:

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

Builds a Sync add request by using the specified sync key, folder collection ID and add application data. In general, returns the XMl formatted Sync request as follows:

CreateSyncDeleteRequest ( string collectionId, string syncKey, string serverId ) : SyncRequest

Builds a Sync delete request by using the specified sync key, folder collection ID, item serverID and deletesAsMoves option. In general, returns the XML formatted Sync request as follows:

CreateSyncRequest ( string collectionId, string syncKey, bool getChanges ) : SyncRequest

Build a generic Sync request without command references by using the specified sync key, folder collection ID and body preference option. In general, returns the XML formatted Sync request as follows:

CreateiCalendarFormatContent ( Microsoft.Protocols.TestSuites.Common.DataStructures.Calendar calendar, string method, string replyMethod, string organizerEmailAddress, string attendeeEmailAddress ) : string

Create iCalendar format string from one calendar instance

InitializeSyncRequest ( string collectionId, Request supported ) : SyncRequest

Builds a initial Sync request by using the specified collection Id. In order to sync the content of a folder, an initial sync key for the folder MUST be obtained from the server. The client obtains the key by sending an initial Sync request with a SyncKey element value of zero and the CollectionId element In general, returns the XML formatted Sync request as follows:

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

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

Next ( ) : string

Get the next value of the client ID