C# Class Microsoft.Protocols.TestSuites.MS_OXORULE.MS_OXWOOFSUTControlAdapter

The implementation of the SUT Control Adapter interface which is used by test cases in the test suite to set or clear Out of Office state by calling Exchange OOF Web Service.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_OXWOOFSUTControlAdapter
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
SetUserOOFSettings ( string mailAddress, string password, bool isOOF ) : bool

Set user mailbox Out of Office state.

Private Methods

Method Description
AcceptServerCertificate ( ) : void

If the SOAP over HTTPS is used as transport, the adapter uses this function to avoid closing base connection. Local client will accept any valid server certificate after executing this function.

ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, System sslPolicyErrors ) : bool

Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication. In adapter, this method always return true, make client can communicate with server under HTTPS without a certification.

Method Details

SetUserOOFSettings() public method

Set user mailbox Out of Office state.
public SetUserOOFSettings ( string mailAddress, string password, bool isOOF ) : bool
mailAddress string User's email address.
password string Password of user mailbox.
isOOF bool If true, set OOF state, else make sure OOF state is not set (clear OOF state).
return bool