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

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

Méthodes protégées

Méthode Description
ConstructFindItemRequest ( string folderName, string value, string field ) : FindItemType

The operation construct a request for FindItem operation.

DefineGeneralGetItemRequestMessage ( ItemIdType itemId, DefaultShapeNamesType baseShape ) : GetItemType

Define general GetItem request message

FindItem ( string userName, string password, string domain, string folderName, string value, string field ) : bool

The operation searches the mailbox and returns the result whether one or more valid items are found.

FindSpecificItem ( string userName, string password, string domain, string folderName, string value, string field ) : ItemType

The operation searches the mailbox and returns the result whether one or more valid items are found.

GetCreateItemType ( MessageDispositionType messageDisposition, DistinguishedFolderIdNameType savedTargetFolderName ) : CreateItemType

Define general CreateItem request message

IsItemAvailableAfterMoveOrDelete ( string userName, string password, string domain, string folderName, string value, string field ) : bool

The operation searches the specified user's mailbox and returns the result whether the valid items are found after the MoveItem or DeleteItem operation completed.

SearchItems ( Role role, string folder, string subject, string field ) : bool

Search the items with the specified subject in the specified folder.

TestInitialize ( ) : void

Initialize the Test suite.

VerifyCreateItemResponse ( CreateItemResponseType createItemResponse, MessageDispositionType messageDisposition ) : bool

Verify the validation of a response of CreateItem operation returned by server.

VerifyMultipleResponse ( BaseResponseMessageType response ) : bool

Verify the response returned by server when the operating multiple items.

VerifyResponse ( BaseResponseMessageType response ) : bool

Verify the validation of a response returned by server.

Method Details

ConstructFindItemRequest() protected méthode

The operation construct a request for FindItem operation.
protected ConstructFindItemRequest ( string folderName, string value, string field ) : FindItemType
folderName string A string that specifies the folder to search.
value string A string that specifies the value for a search restriction.
field string A string that specifies the type of referenced field URI.
Résultat Microsoft.Protocols.TestSuites.Common.FindItemType

DefineGeneralGetItemRequestMessage() protected méthode

Define general GetItem request message
protected DefineGeneralGetItemRequestMessage ( ItemIdType itemId, DefaultShapeNamesType baseShape ) : GetItemType
itemId Microsoft.Protocols.TestSuites.Common.ItemIdType The item identifier of the item.
baseShape DefaultShapeNamesType The basic configuration of properties to be returned in an item response.
Résultat Microsoft.Protocols.TestSuites.Common.GetItemType

FindItem() protected méthode

The operation searches the mailbox and returns the result whether one or more valid items are found.
protected FindItem ( string userName, string password, string domain, string folderName, string value, string field ) : bool
userName string The userName of the user used to communicate with server
password string The password of the user used to communicate with server
domain string The domain of the user used to communicate with server
folderName string A string that specifies the folder to search.
value string A string that specifies the value for a search restriction.
field string A string that specifies the type of referenced field URI.
Résultat bool

FindSpecificItem() protected méthode

The operation searches the mailbox and returns the result whether one or more valid items are found.
protected FindSpecificItem ( string userName, string password, string domain, string folderName, string value, string field ) : ItemType
userName string The userName of the user used to communicate with server
password string The password of the user used to communicate with server
domain string The domain of the user used to communicate with server
folderName string A string that specifies the folder to search.
value string A string that specifies the value for a search restriction.
field string A string that specifies the type of referenced field URI.
Résultat Microsoft.Protocols.TestSuites.Common.ItemType

GetCreateItemType() protected méthode

Define general CreateItem request message
protected GetCreateItemType ( MessageDispositionType messageDisposition, DistinguishedFolderIdNameType savedTargetFolderName ) : CreateItemType
messageDisposition MessageDispositionType A value specifies how a message item is handled after it is created or updated
savedTargetFolderName DistinguishedFolderIdNameType The folder in which new items are saved
Résultat Microsoft.Protocols.TestSuites.Common.CreateItemType

IsItemAvailableAfterMoveOrDelete() protected méthode

The operation searches the specified user's mailbox and returns the result whether the valid items are found after the MoveItem or DeleteItem operation completed.
protected IsItemAvailableAfterMoveOrDelete ( string userName, string password, string domain, string folderName, string value, string field ) : bool
userName string Name of the user.
password string Password of the user.
domain string Domain of the user.
folderName string A string that specifies the folder to search.
value string A string that specifies the value for a search restriction.
field string A string that specifies the type of referenced field URI.
Résultat bool

SearchItems() protected méthode

Search the items with the specified subject in the specified folder.
protected SearchItems ( Role role, string folder, string subject, string field ) : bool
role Role The role used to communicate with server
folder string A string that specifies the folder to search.
subject string The subject of the item to search
field string A string that specifies the type of referenced field URI.
Résultat bool

TestInitialize() protected méthode

Initialize the Test suite.
protected TestInitialize ( ) : void
Résultat void

VerifyCreateItemResponse() protected méthode

Verify the validation of a response of CreateItem operation returned by server.
protected VerifyCreateItemResponse ( CreateItemResponseType createItemResponse, MessageDispositionType messageDisposition ) : bool
createItemResponse CreateItemResponseType A response of CreateItem operation returned by server.
messageDisposition MessageDispositionType A value specifies how a message item is handled after it is created or updated.
Résultat bool

VerifyMultipleResponse() protected méthode

Verify the response returned by server when the operating multiple items.
protected VerifyMultipleResponse ( BaseResponseMessageType response ) : bool
response Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType A response returned by server.
Résultat bool

VerifyResponse() protected méthode

Verify the validation of a response returned by server.
protected VerifyResponse ( BaseResponseMessageType response ) : bool
response Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType A response returned by server.
Résultat bool