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

The class provides the methods to assist MS-WSSRESTAdapter.
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
AnalyseResponse ( XmlDocument response ) : List

Analyze http response.

GetResponseContent ( Stream stream ) : string

Get content from stream.

GetXmlData ( HttpWebResponse httpResponse ) : XmlDocument

Get xml content from http response.

Initialize ( ITestSite testSite ) : void

Initialize object of "Site".

Method Details

AnalyseResponse() public static method

Analyze http response.
public static AnalyseResponse ( XmlDocument response ) : List
response System.Xml.XmlDocument The http response.
return List

GetResponseContent() public static method

Get content from stream.
public static GetResponseContent ( Stream stream ) : string
stream Stream The response stream.
return string

GetXmlData() public static method

Get xml content from http response.
public static GetXmlData ( HttpWebResponse httpResponse ) : XmlDocument
httpResponse System.Net.HttpWebResponse The http web response.
return System.Xml.XmlDocument

Initialize() public static method

Initialize object of "Site".
public static Initialize ( ITestSite testSite ) : void
testSite ITestSite A object provides logging, assertions, and SUT adapters for test code onto its execution context.
return void