C# Class Microsoft.Protocols.TestSuites.MS_ASHTTP.MS_ASHTTPAdapter

Adapter class of MS-ASHTTP.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase, IMS_ASHTTPAdapter
Exibir arquivo Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
ConfigureRequestPrefixFields ( string>.IDictionary requestPrefixFields ) : void

Configure the fields in request line or request headers besides command name and command parameters.

HTTPOPTIONS ( ) : OptionsResponse

Send HTTP OPTIONS request to the server and get the response.

HTTPPOST ( CommandName commandName, object>.IDictionary commandParameters, string requestBody ) : SendStringResponse

Send HTTP POST request to the server and get the response.

Initialize ( ITestSite testSite ) : void

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

Private Methods

Method Description
VerifyHTTPOPTIONSHeaders ( OptionsResponse optionsResponse ) : void

Verify requirements about HTTP OPTIONS response headers.

VerifyHTTPOPTIONSResponse ( OptionsResponse optionsResponse ) : void

Verify requirements about HTTP OPTIONS response.

VerifyHTTPPOSTHeaders ( SendStringResponse postResponse ) : void

Verify requirements about HTTP POST response headers.

VerifyHTTPPOSTResponse ( SendStringResponse postResponse ) : void

Verify requirements about HTTP POST response.

VerifyHTTPResponse ( ) : void

Verify requirements about HTTP response.

VerifyTransportType ( ) : void

Verify the transport related requirements.

Method Details

ConfigureRequestPrefixFields() public method

Configure the fields in request line or request headers besides command name and command parameters.
public ConfigureRequestPrefixFields ( string>.IDictionary requestPrefixFields ) : void
requestPrefixFields string>.IDictionary The fields in request line or request headers which need to be configured besides command name and command parameters.
return void

HTTPOPTIONS() public method

Send HTTP OPTIONS request to the server and get the response.
public HTTPOPTIONS ( ) : OptionsResponse
return OptionsResponse

HTTPPOST() public method

Send HTTP POST request to the server and get the response.
public HTTPPOST ( CommandName commandName, object>.IDictionary commandParameters, string requestBody ) : SendStringResponse
commandName CommandName The name of the command to send.
commandParameters object>.IDictionary The command parameters.
requestBody string The plain text request.
return SendStringResponse

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