C# Class Microsoft.Protocols.TestSuites.MS_OXCSTOR.MS_OXCSTORAdapter

Server role and both role Adapter requirements capture code for MS-OXCSTOR.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_OXCSTORAdapter
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
ConnectEx ( ConnectionType connectionType ) : bool

Connect to server for RPC calling.

ConnectEx ( string server, ConnectionType connectionType, string userDN, string domain, string userName, string password ) : bool

Connect to the server for RPC calling.

DisconnectEx ( ) : bool

Disconnect the connection with server.

DoRopCall ( ISerializable ropRequest, uint inputObjHandle, ROPCommandType commandType, RopOutputBuffer &outputBuffer, string mailBoxUser = null ) : void

Send ROP request with single operation with expected SuccessResponse.

Initialize ( ITestSite testSite ) : void

Initialize class

Reset ( ) : void

Reset the adapter.

SetAutoRedirect ( bool option ) : void

Set auto redirect value in RPC context

Private Methods

Method Description
VerifyRPC ( ) : void

Verify the ROP runs on the underlying remote procedure call (RPC) transport

VerifyRopGetOwningServers ( RopGetOwningServersResponse response ) : void

Verify the response by sending the ROP RopGetOwningServers.

VerifyRopGetPerUserGuid ( RopGetPerUserGuidResponse response ) : void

Verify the response by sending the ROP RopGetPerUserGuid.

VerifyRopGetPerUserLongTermIds ( RopGetPerUserLongTermIdsResponse response ) : void

Verify the response by sending the ROP RopGetPerUserLongTermIds.

VerifyRopGetReceiveFolder ( RopGetReceiveFolderResponse response ) : void

Verify the response by sending the ROP RopGetReceiveFolder.

VerifyRopGetReceiveFolderTable ( RopGetReceiveFolderTableResponse response ) : void

Verify the response by sending the ROP RopGetReceiveFolderTable.

VerifyRopIdFromLongTermId ( RopIdFromLongTermIdRequest request, RopIdFromLongTermIdResponse response ) : void

Verify the response by sending the ROP RopIdFromLongTermId

VerifyRopLogonForPrivateMailbox ( RopLogonRequest request, RopLogonResponse response ) : void

Verify the response by sending the ROP RopLogon for the private mailbox.

VerifyRopLogonForPublicFolder ( RopLogonRequest request, RopLogonResponse response ) : void

Verify the response by sending the ROP RopLogon for the public folders.

VerifyRopLongTermIdFromId ( RopLongTermIdFromIdRequest request, RopLongTermIdFromIdResponse response ) : void

Verify the response by sending the ROP RopLongTermIdFromId

VerifyRopPublicFolderIsGhosted ( RopPublicFolderIsGhostedResponse response ) : void

Verify the response by sending the ROP RopPublicFolderIsGhosted.

VerifyRopReadPerUserInformation ( RopReadPerUserInformationResponse response ) : void

Verify the response by sending the ROP RopReadPerUserInformation.

VerifyRopSetReceiveFolder ( RopSetReceiveFolderResponse response ) : void

Verify the response by sending the ROP RopSetReceiveFolder.

VerifyRopWritePerUserInformation ( RopWritePerUserInformationResponse response ) : void

Verify the response by sending the ROP RopWritePerUserInformation.

VerifyTransport ( ) : void

Verify transport.

Method Details

ConnectEx() public method

Connect to server for RPC calling.
public ConnectEx ( ConnectionType connectionType ) : bool
connectionType ConnectionType The type of connection
return bool

ConnectEx() public method

Connect to the server for RPC calling.
public ConnectEx ( string server, ConnectionType connectionType, string userDN, string domain, string userName, string password ) : bool
server string Server to connect.
connectionType ConnectionType The type of connection
userDN string UserDN used to connect server
domain string The domain the server is deployed
userName string The domain account name
password string User password
return bool

DisconnectEx() public method

Disconnect the connection with server.
public DisconnectEx ( ) : bool
return bool

DoRopCall() public method

Send ROP request with single operation with expected SuccessResponse.
public DoRopCall ( ISerializable ropRequest, uint inputObjHandle, ROPCommandType commandType, RopOutputBuffer &outputBuffer, string mailBoxUser = null ) : void
ropRequest ISerializable ROP request objects.
inputObjHandle uint Server object handle in request.
commandType ROPCommandType ROP commands type
outputBuffer RopOutputBuffer ROP response buffer
mailBoxUser string Mailbox which to logon to
return void

Initialize() public method

Initialize class
public Initialize ( ITestSite testSite ) : void
testSite ITestSite The instance of the ITestSite
return void

Reset() public method

Reset the adapter.
public Reset ( ) : void
return void

SetAutoRedirect() public method

Set auto redirect value in RPC context
public SetAutoRedirect ( bool option ) : void
option bool True indicates enable auto redirect, false indicates disable auto redirect
return void