C# Class Microsoft.Protocols.TestSuites.MS_OXWSFOLD.MS_OXWSFOLDAdapter

The class provides methods to verify data/operation format in MS-OXWSFOLD.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_OXWSFOLDAdapter
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
ConfigureSOAPHeader ( object>.Dictionary headerValues ) : void

Configure the SOAP header before calling operations.

CopyFolder ( CopyFolderType request ) : CopyFolderResponseType

Copy one folder into another one.

CreateFolder ( CreateFolderType request ) : CreateFolderResponseType

Create a new folder within a specific folder.

CreateManagedFolder ( CreateManagedFolderRequestType request ) : CreateManagedFolderResponseType

Create a managed folder in server, the folder should be added in mailbox by server administrator in advance.

DeleteFolder ( DeleteFolderType request ) : DeleteFolderResponseType

Delete a folder from mailbox.

EmptyFolder ( EmptyFolderType request ) : EmptyFolderResponseType

Empty identified folders and can be used to delete the subfolders of the specified folder.

GetFolder ( GetFolderType request ) : GetFolderResponseType

Get folders, Calendar folders, Contacts folders, Tasks folders, and search folders.

Initialize ( TestTools testSite ) : void

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.

MoveFolder ( MoveFolderType request ) : MoveFolderResponseType

Move folders from a specified parent folder to another parent folder.

SwitchUser ( string userName, string userPassword, string userDomain ) : void

Switch the current user to the new one, with the identity of the new user to communicate with Exchange Web Service.

UpdateFolder ( UpdateFolderType request ) : UpdateFolderResponseType

Modify properties of an existing folder in the server store.

Private Methods

Method Description
VerifyAllRelatedRequirements ( bool isSchemaValidated, BaseResponseMessageType responseMessage ) : void

Verify the requirements relate to all operations.

VerifyCopyFolderResponse ( bool isSchemaValidated ) : void

Verify requirements related to CopyFolder response.

VerifyCreateFolderResponse ( bool isSchemaValidated, CreateFolderResponseType createFolderResponse ) : void

Verify requirements of CreateFolder response.

VerifyCreateManagedFolderResponse ( bool isSchemaValidated ) : void

Verify requirements of CreateManagedFolder operation.

VerifyDeleteFolderResponse ( bool isSchemaValidated ) : void

Verify requirements of DeleteFolder operation.

VerifyEmptyFolderResponse ( bool isSchemaValidated ) : void

Verify EmptyFolder operation requirements.

VerifyGetFolderResponse ( GetFolderResponseType getFolderResponse, bool isSchemaValidated ) : void

Verify GetFolder operation requirements.

VerifyMoveFolderResponse ( bool isSchemaValidated ) : void

Verify MoveFolder operation requirements.

VerifySoapVersion ( ) : void

Verify the SOAP version.

VerifyTransportType ( ) : void

Verify the transport related requirements.

VerifyUpdateFolderResponse ( bool isSchemaValidated ) : void

Verify UpdateFolder operation requirements.

Method Details

ConfigureSOAPHeader() public method

Configure the SOAP header before calling operations.
public ConfigureSOAPHeader ( object>.Dictionary headerValues ) : void
headerValues object>.Dictionary Specify the values for SOAP header.
return void

CopyFolder() public method

Copy one folder into another one.
public CopyFolder ( CopyFolderType request ) : CopyFolderResponseType
request CopyFolderType Request of CopyFolder operation.
return CopyFolderResponseType

CreateFolder() public method

Create a new folder within a specific folder.
public CreateFolder ( CreateFolderType request ) : CreateFolderResponseType
request Microsoft.Protocols.TestSuites.Common.CreateFolderType Request of CreateFolder operation.
return CreateFolderResponseType

CreateManagedFolder() public method

Create a managed folder in server, the folder should be added in mailbox by server administrator in advance.
public CreateManagedFolder ( CreateManagedFolderRequestType request ) : CreateManagedFolderResponseType
request Microsoft.Protocols.TestSuites.Common.CreateManagedFolderRequestType Request of CreateManagedFolder operation.
return CreateManagedFolderResponseType

DeleteFolder() public method

Delete a folder from mailbox.
public DeleteFolder ( DeleteFolderType request ) : DeleteFolderResponseType
request Microsoft.Protocols.TestSuites.Common.DeleteFolderType Request DeleteFolder operation.
return DeleteFolderResponseType

EmptyFolder() public method

Empty identified folders and can be used to delete the subfolders of the specified folder.
public EmptyFolder ( EmptyFolderType request ) : EmptyFolderResponseType
request Microsoft.Protocols.TestSuites.Common.EmptyFolderType Request of EmptyFolder operation.
return EmptyFolderResponseType

GetFolder() public method

Get folders, Calendar folders, Contacts folders, Tasks folders, and search folders.
public GetFolder ( GetFolderType request ) : GetFolderResponseType
request Microsoft.Protocols.TestSuites.Common.GetFolderType Request of GetFolder operation.
return GetFolderResponseType

Initialize() public method

Overrides IAdapter's Initialize() and sets default protocol short name of the testSite.
public Initialize ( TestTools testSite ) : void
testSite TestTools Pass ITestSite to adapter, make adapter can use ITestSite's function.
return void

MoveFolder() public method

Move folders from a specified parent folder to another parent folder.
public MoveFolder ( MoveFolderType request ) : MoveFolderResponseType
request MoveFolderType Request of MoveFolder operation.
return MoveFolderResponseType

SwitchUser() public method

Switch the current user to the new one, with the identity of the new user to communicate with Exchange Web Service.
public SwitchUser ( string userName, string userPassword, string userDomain ) : void
userName string The name of a user
userPassword string The password of a user
userDomain string The domain, in which a user is
return void

UpdateFolder() public method

Modify properties of an existing folder in the server store.
public UpdateFolder ( UpdateFolderType request ) : UpdateFolderResponseType
request Microsoft.Protocols.TestSuites.Common.UpdateFolderType Request of UpdateFolder.
return UpdateFolderResponseType