C# Class Microsoft.Protocols.TestSuites.MS_ASCMD.AdapterHelper

The class provides the methods to assist MS-ASCMDAdapter.
Inheritance: Microsoft.Protocols.TestTools.ManagedAdapterBase
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
GetStatusFromResponses ( object response ) : byte

Get the ASCMD Status from Response.

GetValidateCertStatusCode ( ValidateCertResponse response ) : string

Get ValidateCert response status code returned by the ValidateCert operation.

PickUpRootStatusValueFromXMLString ( string responsexmlString ) : byte

Pick up the Status value from the XMLString of response.

ValidStatus ( string statusValues ) : string[]

Get an array of the possible status codes for a command.

Method Details

GetStatusFromResponses() public method

Get the ASCMD Status from Response.
public GetStatusFromResponses ( object response ) : byte
response object ASCMD command responses.
return byte

GetValidateCertStatusCode() public static method

Get ValidateCert response status code returned by the ValidateCert operation.
public static GetValidateCertStatusCode ( ValidateCertResponse response ) : string
response ValidateCertResponse The data of ValidateCert response.
return string

PickUpRootStatusValueFromXMLString() public static method

Pick up the Status value from the XMLString of response.
public static PickUpRootStatusValueFromXMLString ( string responsexmlString ) : byte
responsexmlString string Response xml String.
return byte

ValidStatus() public static method

Get an array of the possible status codes for a command.
public static ValidStatus ( string statusValues ) : string[]
statusValues string The status codes for a specific command.
return string[]