C# Class Microsoft.Protocols.TestSuites.SharedAdapter.SubResponseValidationWrapper

This class is used to validate the schema for each specified sub response.
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
Validate ( string rawResponse, ITestSite site ) : void

This method is used to validate the sub response according to the current record sub request token and sub request type.

Private Methods

Method Description
ExtractSubResponseNode ( string rawResponse ) : XmlDocument

This method is used to get the corresponding sub response according to the current record sub request token.

InvokeCaptureCode ( object subResponse, ITestSite site ) : void

This method is used to invoke capture logic according the sub response type.

SerializeSubResponse ( XmlDocument subResponseDocument, ITestSite site ) : object

This method is used to serialize the sub response to a specified sub response instance.

Method Details

Validate() public method

This method is used to validate the sub response according to the current record sub request token and sub request type.
public Validate ( string rawResponse, ITestSite site ) : void
rawResponse string Specify the raw XML string response returned by the protocol server.
site ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
return void