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

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

Private Properties

Property Type Description

Protected Methods

Method Description
CreateItem ( DistinguishedFolderIdNameType parentFolderType, string parentFolderId, string itemSubject ) : ItemIdType

Create an item in the specified folder.

CreateSubFolder ( DistinguishedFolderIdNameType parentFolderType, string subFolderName ) : string

Create a sub folder in the specified parent folder.

ExchangeServiceBinding_ResponseEvent ( BaseRequestType request, BaseResponseMessageType response, bool isSchemaValidated ) : void

Handle the server response.

ExportItems ( bool configureSOAPHeader ) : Microsoft.Protocols.TestSuites.Common.ExportItemsResponseMessageType[]

Get the ExportItemsResponseMessageType response of ExportItems operation.

GetItems ( BaseItemIdType itemIds ) : Microsoft.Protocols.TestSuites.Common.ItemType[]

Get the items information.

TestCleanup ( ) : void

Clean up the environment.

TestInitialize ( ) : void

Initialize the Test suite.

UploadInvalidItems ( Collection parentFolderId, CreateActionType createAction ) : Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]

Get the UploadItemsResponseMessageType response of UploadItems operation when this operation executes unsuccessfully.

UploadItems ( ExportItemsResponseMessageType exportedItems, Collection parentFolderId, CreateActionType createAction, bool isAssociatedSpecified, bool isAssociated, bool configureSOAPHeader ) : Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]

Get the UploadItemsResponseMessageType response of UploadItems operation when this operation executes successfully.

VerifyExportItemsErrorResponse ( BaseResponseMessageType exportItemsResponse ) : void

Verify the ExportItemsResponseType related requirements when ExportItems operation executes unsuccessfully.

VerifyExportItemsSuccessResponse ( BaseResponseMessageType exportItemsResponse ) : void

Verify the ExportItemsResponseType related requirements when the ExportItems operation executes successfully.

VerifyItemsUploadedToMailbox ( ItemType getItems ) : void

Verify the array of items uploaded to a mailbox

VerifyManagementRolePart ( ) : void

Verify the ManagementRole part of ExportItems operation

VerifyUploadItemsErrorResponse ( BaseResponseMessageType uploadItemsResponse ) : void

Verify the UploadItemsResponseType related requirements when UploadItems executes unsuccessfully.

VerifyUploadItemsSuccessResponse ( BaseResponseMessageType uploadItemsResponse ) : void

Verify the UploadItemsResponseType related requirements when UploadItems operation executes successfully.

Method Details

CreateItem() protected method

Create an item in the specified folder.
protected CreateItem ( DistinguishedFolderIdNameType parentFolderType, string parentFolderId, string itemSubject ) : ItemIdType
parentFolderType DistinguishedFolderIdNameType Type of the parent folder.
parentFolderId string ID of the parent folder.
itemSubject string Subject of the item which should be created.
return Microsoft.Protocols.TestSuites.Common.ItemIdType

CreateSubFolder() protected method

Create a sub folder in the specified parent folder.
protected CreateSubFolder ( DistinguishedFolderIdNameType parentFolderType, string subFolderName ) : string
parentFolderType DistinguishedFolderIdNameType Type of the parent folder.
subFolderName string Name of the folder which should be created.
return string

ExchangeServiceBinding_ResponseEvent() protected method

Handle the server response.
protected ExchangeServiceBinding_ResponseEvent ( BaseRequestType request, BaseResponseMessageType response, bool isSchemaValidated ) : void
request BaseRequestType The request messages.
response Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType The response messages.
isSchemaValidated bool Whether the schema is validated.
return void

ExportItems() protected method

Get the ExportItemsResponseMessageType response of ExportItems operation.
protected ExportItems ( bool configureSOAPHeader ) : Microsoft.Protocols.TestSuites.Common.ExportItemsResponseMessageType[]
configureSOAPHeader bool A Boolean value specifies whether configuring the SOAP header before calling operations.
return Microsoft.Protocols.TestSuites.Common.ExportItemsResponseMessageType[]

GetItems() protected method

Get the items information.
protected GetItems ( BaseItemIdType itemIds ) : Microsoft.Protocols.TestSuites.Common.ItemType[]
itemIds BaseItemIdType The array of item ids.
return Microsoft.Protocols.TestSuites.Common.ItemType[]

TestCleanup() protected method

Clean up the environment.
protected TestCleanup ( ) : void
return void

TestInitialize() protected method

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

UploadInvalidItems() protected method

Get the UploadItemsResponseMessageType response of UploadItems operation when this operation executes unsuccessfully.
protected UploadInvalidItems ( Collection parentFolderId, CreateActionType createAction ) : Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]
parentFolderId Collection Specifies the target folder in which to place the upload item.
createAction CreateActionType Specifies the action for uploading items to the folder.
return Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]

UploadItems() protected method

Get the UploadItemsResponseMessageType response of UploadItems operation when this operation executes successfully.
protected UploadItems ( ExportItemsResponseMessageType exportedItems, Collection parentFolderId, CreateActionType createAction, bool isAssociatedSpecified, bool isAssociated, bool configureSOAPHeader ) : Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]
exportedItems Microsoft.Protocols.TestSuites.Common.ExportItemsResponseMessageType The items exported from server.
parentFolderId Collection Specifies the target folder in which to place the upload item.
createAction CreateActionType Specifies the action for uploading items to the folder.
isAssociatedSpecified bool A Boolean value specifies whether IsAssociated attribute is specified.
isAssociated bool Specifies the value of the IsAssociated attribute.
configureSOAPHeader bool A Boolean value specifies whether configuring the SOAP header before calling operations.
return Microsoft.Protocols.TestSuites.Common.UploadItemsResponseMessageType[]

VerifyExportItemsErrorResponse() protected method

Verify the ExportItemsResponseType related requirements when ExportItems operation executes unsuccessfully.
protected VerifyExportItemsErrorResponse ( BaseResponseMessageType exportItemsResponse ) : void
exportItemsResponse Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType The ExportItemsResponseType instance returned from the server.
return void

VerifyExportItemsSuccessResponse() protected method

Verify the ExportItemsResponseType related requirements when the ExportItems operation executes successfully.
protected VerifyExportItemsSuccessResponse ( BaseResponseMessageType exportItemsResponse ) : void
exportItemsResponse Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType The ExportItemsResponseType instance returned from the server.
return void

VerifyItemsUploadedToMailbox() protected method

Verify the array of items uploaded to a mailbox
protected VerifyItemsUploadedToMailbox ( ItemType getItems ) : void
getItems Microsoft.Protocols.TestSuites.Common.ItemType The items information.
return void

VerifyManagementRolePart() protected method

Verify the ManagementRole part of ExportItems operation
protected VerifyManagementRolePart ( ) : void
return void

VerifyUploadItemsErrorResponse() protected method

Verify the UploadItemsResponseType related requirements when UploadItems executes unsuccessfully.
protected VerifyUploadItemsErrorResponse ( BaseResponseMessageType uploadItemsResponse ) : void
uploadItemsResponse Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType The UploadItemsResponseType instance returned from the server.
return void

VerifyUploadItemsSuccessResponse() protected method

Verify the UploadItemsResponseType related requirements when UploadItems operation executes successfully.
protected VerifyUploadItemsSuccessResponse ( BaseResponseMessageType uploadItemsResponse ) : void
uploadItemsResponse Microsoft.Protocols.TestSuites.Common.BaseResponseMessageType The UploadItemsResponseType instance returned from the server.
return void