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

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

Public Methods

Method Description
GetClientId ( ) : string

Get client id for send mail

Private Methods

Method Description
CreateAttendees ( string attendeeEmail ) : Attendees

Create a Request.Attendees instance by the attendee email address.

CreateItemOperationsRequest ( string collectionId, string serverId, string fileReference, Request bodyPreferences, Request bodyPartPreferences ) : ItemOperationsRequest

Build an ItemOperations command request.

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

Create MIME for SendMail command.

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

Create a meeting request mime

CreateSearchRequest ( string query, string collectionId, string conversationId, Request bodyPreferences, Request bodyPartPreferences ) : SearchRequest

Build a Search request.

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

Create a sync add request.

CreateSyncCollection ( string syncKey, string collectionId ) : SyncCollection

Create an instance of SyncCollection.

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

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

CreateSyncRequest ( string syncKey, string collectionId, object commands, Request bodyPreferences, Request bodyPartPreferences ) : SyncRequest

Build a Sync command request.

CreateiCalendarFormatContent ( Calendar calendar ) : string

Create iCalendar format string from one calendar instance

GetDataInnerText ( XmlElement lastRawResponse, string parentNodeName, string nodeName, string subject ) : string

Get the inner text of specified element.

GetSearchItem ( Microsoft.Protocols.TestSuites.Common.DataStructures searchStore, string subject ) : 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 subject ) : Sync

Get the specified email item from the sync add response by using the subject.

SetMeetingProperties ( string subject, string attendeeEmailAddress, ITestSite testSite ) : object>.Dictionary

Set the value of common meeting properties

TruncateData ( string originalData, int length ) : string

Truncate data according to the specified length.

Method Details

GetClientId() public static method

Get client id for send mail
public static GetClientId ( ) : string
return string