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

The class provides the methods to assist MS-SITESSAdapter.
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes publiques

Méthode Description
CompareStringArrays ( string str1, string str2 ) : bool

Compare two string array's elements.

DeserializeWebProperties ( string prop, char itemSpliter, char keySpliter ) : string>.Dictionary

Deserialize web properties returned by the GetWebProperties method.

Initialize ( ITestSite testSiteInstance ) : void

Initialize this helper class with ITestSite.

MessageValidation ( string message, string schema ) : void

Validate whether an xml message follows the schema.

SiteResultDeserialize ( string getSiteResult ) : Site

Deserialize an xml string to a Site object.

Private Methods

Méthode Description
Schema_ValidationEventHandler ( object sender, ValidationEventArgs args ) : void

The callback method that will handle XML schema validation events.

Method Details

CompareStringArrays() public static méthode

Compare two string array's elements.
public static CompareStringArrays ( string str1, string str2 ) : bool
str1 string The first string array to be compared.
str2 string The second string array to be compared.
Résultat bool

DeserializeWebProperties() public static méthode

Deserialize web properties returned by the GetWebProperties method.
public static DeserializeWebProperties ( string prop, char itemSpliter, char keySpliter ) : string>.Dictionary
prop string Web properties string value.
itemSpliter char The char value for item split.
keySpliter char The char value for key and value split.
Résultat string>.Dictionary

Initialize() public static méthode

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.
Résultat void

MessageValidation() public static méthode

Validate whether an xml message follows the schema.
public static MessageValidation ( string message, string schema ) : void
message string The xml message.
schema string The schema of the message.
Résultat void

SiteResultDeserialize() public static méthode

Deserialize an xml string to a Site object.
public static SiteResultDeserialize ( string getSiteResult ) : Site
getSiteResult string The xml string returned from the GetSite operation.
Résultat Site