C# 클래스 Microsoft.Protocols.TestSuites.MS_WWSP.AdapterHelper

This class contains common help methods.
파일 보기 프로젝트 열기: OfficeDev/Interop-TestSuites

공개 메소드들

메소드 설명
AreEquals ( this currentclaimResultInstance, ClaimReleaseTaskResponseClaimReleaseTaskResult targetclaimResultInstance ) : bool

It is extend method and used to compare fields' value between two instance of ClaimReleaseTaskResponseClaimReleaseTaskResult type.

GetAssociationDataFromTemplateItem ( string templateName, TemplateData templateData ) : XmlNode

Get the association data from specified templateItem in response of GetTemplatesForItem operation.

GetAttributeValueFromXml ( string attributeName, XmlNode xmlNode ) : string

Get attribute value from response data of an operation.

GetNodeFromXML ( string nodeName, XmlNode xmlNode ) : XmlNode

Get the specified XML node from the specified XML fragment.

GetWorkFlowTemplateItemByName ( string templateName, TemplateData templateData ) : TemplateDataWorkflowTemplate

Get the WorkFlow Template Item By specified Name

HasElement ( XmlElement xmlElement, string elementName ) : bool

The method is used to verify whether specified elementName is existed in the specified lastRawXml.

Initialize ( ITestSite currentSite ) : void

Initialize object of "Site".

IsValueValid ( long value, long bitMasks ) : bool

A method used to check if the specified value is zero or more combination of the bitmasks.

VerifyWorkflowAssociationSchema ( XmlNode workFlowAssociationData ) : void

Verify the schema definition for the workflow association data, if there is error in validation, method will throw an XmlSchemaValidationException.

비공개 메소드들

메소드 설명
Combination ( long bitMasks, int countCom, List &combinations ) : bool

Get the combinations from the specified count of bitmasks.

GetCombinationsFromBitMasks ( long bitMasks ) : List

Get all the combinations of the bitmasks.

LoadWorkflowAssociationSchemas ( ) : List

Load the workflow Association Schema definitions

메소드 상세

AreEquals() 공개 정적인 메소드

It is extend method and used to compare fields' value between two instance of ClaimReleaseTaskResponseClaimReleaseTaskResult type.
public static AreEquals ( this currentclaimResultInstance, ClaimReleaseTaskResponseClaimReleaseTaskResult targetclaimResultInstance ) : bool
currentclaimResultInstance this A parameter represents the current instance of ClaimReleaseTaskResponseClaimReleaseTaskResult type.
targetclaimResultInstance ClaimReleaseTaskResponseClaimReleaseTaskResult A parameter represents the target instance of ClaimReleaseTaskResponseClaimReleaseTaskResult type which will be compared.
리턴 bool

GetAssociationDataFromTemplateItem() 공개 정적인 메소드

Get the association data from specified templateItem in response of GetTemplatesForItem operation.
public static GetAssociationDataFromTemplateItem ( string templateName, TemplateData templateData ) : XmlNode
templateName string A parameter represents the template name which will be used to find out the template item
templateData TemplateData A parameter represents response of GetTemplatesForItem operation which contains the association data.
리턴 System.Xml.XmlNode

GetAttributeValueFromXml() 공개 정적인 메소드

Get attribute value from response data of an operation.
public static GetAttributeValueFromXml ( string attributeName, XmlNode xmlNode ) : string
attributeName string The specified attribute name.
xmlNode System.Xml.XmlNode The response data of an operation.
리턴 string

GetNodeFromXML() 공개 정적인 메소드

Get the specified XML node from the specified XML fragment.
public static GetNodeFromXML ( string nodeName, XmlNode xmlNode ) : XmlNode
nodeName string The name of specified XML node.
xmlNode System.Xml.XmlNode The specified XML fragment.
리턴 System.Xml.XmlNode

GetWorkFlowTemplateItemByName() 공개 정적인 메소드

Get the WorkFlow Template Item By specified Name
public static GetWorkFlowTemplateItemByName ( string templateName, TemplateData templateData ) : TemplateDataWorkflowTemplate
templateName string A parameter represents the template name which will be used to find out the template item
templateData TemplateData A parameter represents response of GetTemplatesForItem operation.
리턴 TemplateDataWorkflowTemplate

HasElement() 공개 정적인 메소드

The method is used to verify whether specified elementName is existed in the specified lastRawXml.
public static HasElement ( XmlElement xmlElement, string elementName ) : bool
xmlElement System.Xml.XmlElement The XML element.
elementName string The element name which need to check whether it is existed.
리턴 bool

Initialize() 공개 정적인 메소드

Initialize object of "Site".
public static Initialize ( ITestSite currentSite ) : void
currentSite ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
리턴 void

IsValueValid() 공개 정적인 메소드

A method used to check if the specified value is zero or more combination of the bitmasks.
public static IsValueValid ( long value, long bitMasks ) : bool
value long A parameter represents the value which is used to check.
bitMasks long A parameter represents the array which is used limit the value specified in value parameter
리턴 bool

VerifyWorkflowAssociationSchema() 공개 정적인 메소드

Verify the schema definition for the workflow association data, if there is error in validation, method will throw an XmlSchemaValidationException.
public static VerifyWorkflowAssociationSchema ( XmlNode workFlowAssociationData ) : void
workFlowAssociationData System.Xml.XmlNode A parameter represents the data of the association
리턴 void