C# Class Microsoft.Protocols.TestSuites.MS_ASPROV.MS_ASPROVAdapter

Adapter class of MS-ASPROV.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_ASPROVAdapter
Mostrar archivo Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
ApplyDeviceType ( string appliedDeviceType ) : void

Apply the specified DeviceType.

ApplyPolicyKey ( string appliedPolicyKey ) : void

Apply the specified PolicyKey.

FolderSync ( FolderSyncRequest folderSyncRequest ) : FolderSyncResponse

Synchronizes the collection hierarchy from server.

Initialize ( ITestSite testSite ) : void

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

Provision ( ProvisionRequest provisionRequest ) : ProvisionResponse

Request the security policy settings that the administrator sets from the server.

SendProvisionStringRequest ( string provisionRequest ) : ProvisionResponse

Send string request of Provision command to the server and get the Provision response.

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

Change the user authentication.

Sync ( SyncRequest syncRequest ) : SyncStore

Synchronizes the changes in a collection between the client and the server by sending SyncRequest object.

SyncEmail ( SyncRequest syncRequest, string subject, bool isRetryNeeded ) : Sync

Find an email with specific subject.

Private Methods

Method Description
VerifyBooleanStructure ( ) : void

This method is used to verify the Boolean related requirements.

VerifyContainerStructure ( ) : void

This method is used to verify the Container related requirements.

VerifyEASProvisionDocElement ( ProvisionResponse provisionResponse ) : void

Verify child elements of EASProvisionDoc element.

VerifyIntegerStructure ( ) : void

This method is used to verify the integer related requirements.

VerifyProvisionCommandRequirements ( ProvisionResponse provisionResponse ) : void

Verify Provision command requirements.

VerifyStringStructure ( ) : void

This method is used to verify the string related requirements.

VerifyUnsignedByteStructure ( byte byteValue ) : void

This method is used to verify the unsignedByte related requirements.

VerifyWBXMLRequirements ( ) : void

Verify WBXML Capture for WBXML process.

Method Details

ApplyDeviceType() public method

Apply the specified DeviceType.
public ApplyDeviceType ( string appliedDeviceType ) : void
appliedDeviceType string The device type to apply.
return void

ApplyPolicyKey() public method

Apply the specified PolicyKey.
public ApplyPolicyKey ( string appliedPolicyKey ) : void
appliedPolicyKey string The policy key to apply.
return void

FolderSync() public method

Synchronizes the collection hierarchy from server.
public FolderSync ( FolderSyncRequest folderSyncRequest ) : FolderSyncResponse
folderSyncRequest FolderSyncRequest The request of FolderSync command.
return FolderSyncResponse

Initialize() public method

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

Provision() public method

Request the security policy settings that the administrator sets from the server.
public Provision ( ProvisionRequest provisionRequest ) : ProvisionResponse
provisionRequest ProvisionRequest The request of Provision command.
return ProvisionResponse

SendProvisionStringRequest() public method

Send string request of Provision command to the server and get the Provision response.
public SendProvisionStringRequest ( string provisionRequest ) : ProvisionResponse
provisionRequest string The string request of Provision command.
return ProvisionResponse

SwitchUser() public method

Change the user authentication.
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 which the user belongs to.
return void

Sync() public method

Synchronizes the changes in a collection between the client and the server by sending SyncRequest object.
public Sync ( SyncRequest syncRequest ) : SyncStore
syncRequest SyncRequest A SyncRequest object that contains the request information.
return Microsoft.Protocols.TestSuites.Common.DataStructures.SyncStore

SyncEmail() public method

Find an email with specific subject.
public SyncEmail ( SyncRequest syncRequest, string subject, bool isRetryNeeded ) : Sync
syncRequest SyncRequest A SyncRequest object that contains the request information.
subject string The subject of the email to find.
isRetryNeeded bool A boolean indicating whether need retry.
return Sync