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

The bass class of scenario class.
Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites

Protected Methods

Method 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 method

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.
return Microsoft.Protocols.TestSuites.Common.FindItemType

DefineGeneralGetItemRequestMessage() protected method

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.
return Microsoft.Protocols.TestSuites.Common.GetItemType

FindItem() protected method

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.
return bool

FindSpecificItem() protected method

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.
return Microsoft.Protocols.TestSuites.Common.ItemType

GetCreateItemType() protected method

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
return Microsoft.Protocols.TestSuites.Common.CreateItemType

IsItemAvailableAfterMoveOrDelete() protected method

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.
return bool

SearchItems() protected method

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.
return bool

TestInitialize() protected method

Initialize the Test suite.
protected TestInitialize ( ) : void
return void

VerifyCreateItemResponse() protected method

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.
return bool

VerifyMultipleResponse() protected method

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.
return bool

VerifyResponse() protected method

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.
return bool