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

The AdapterHelper class.
Show file Open project: OfficeDev/Interop-TestSuites

Public Methods

Method Description
ExtractData ( XmlNode rowElements ) : DataTable

A method used to extract a row elements to a DataTable. It is used for "z:row" data.

GetElementValue ( XmlElement elements, string name ) : string

A method used to get the value of Element from an XmlElement array by specified name.

GetErrorCodeFromSoapException ( System.Web.Services.Protocols.SoapException soapEx ) : string

A method used to get error code from the specified Soap Exception.

GetValueFromConfig ( string propertyName ) : string

The helper method is used to retrieve property value from PTF configuration.

Initialize ( ITestSite testSiteInstance ) : void

A method used to initialize this helper class with ITestSite.

Method Details

ExtractData() public static method

A method used to extract a row elements to a DataTable. It is used for "z:row" data.
public static ExtractData ( XmlNode rowElements ) : DataTable
rowElements System.Xml.XmlNode A parameter represents the "z:row" data which need to be extracted.
return System.Data.DataTable

GetElementValue() public static method

A method used to get the value of Element from an XmlElement array by specified name.
public static GetElementValue ( XmlElement elements, string name ) : string
elements System.Xml.XmlElement A parameter represents the source elements where the method finds the value.
name string A parameter represents the specified element name which is used to find element's value.
return string

GetErrorCodeFromSoapException() public static method

A method used to get error code from the specified Soap Exception.
public static GetErrorCodeFromSoapException ( System.Web.Services.Protocols.SoapException soapEx ) : string
soapEx System.Web.Services.Protocols.SoapException A parameter represents the specified Soap Exception.
return string

GetValueFromConfig() public static method

The helper method is used to retrieve property value from PTF configuration.
public static GetValueFromConfig ( string propertyName ) : string
propertyName string The name of property to be retrieved.
return string

Initialize() public static method

A method used to initialize this helper class with ITestSite.
public static Initialize ( ITestSite testSiteInstance ) : void
testSiteInstance ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
return void