Microsoft.Protocols.TestSuites.MS_WWSP.MS_WWSPAdapter.CaptureXMLSchemaGetWorkflowTaskData C# (CSharp) Method

CaptureXMLSchemaGetWorkflowTaskData() private method

Capture XML schema related requirements of GetWorkflowTaskData operation.
private CaptureXMLSchemaGetWorkflowTaskData ( ) : void
return void
        private void CaptureXMLSchemaGetWorkflowTaskData()
        {
            // The schema of GetWorkflowTaskData operation has been validated by full WSDL.
            // If it returns success, the schema of GetWorkflowTaskData operation is valid, capture related requirements.
            isSuccess = SchemaValidation.ValidationResult == ValidationResult.Success;

            // Add the log information.
            Site.Log.Add(LogEntryKind.Debug, "Validated that full WSDL(using SchemaValidation.cs) is correct or not: {0}", isSuccess);

            // Verify MS-WWSP requirement: MS-WWSP_R294
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                294,
                @"[In GetWorkflowTaskData][The schema of the GetWorkflowTaskData is: ] <wsdl:operation name=""GetWorkflowTaskData"">
    <wsdl:input message=""GetWorkflowTaskDataSoapIn"" />
    <wsdl:output message=""GetWorkflowTaskDataSoapOut"" />
</wsdl:operation>");

            // Verify MS-WWSP requirement: MS-WWSP_R320
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                320,
                @"[In GetWorkflowTaskDataResponse][The schema of the GetWorkflowTaskDataResponse is:] <s:element name=""GetWorkflowTaskDataResponse"">
  <s:complexType>
    <s:sequence>
      <s:element name=""GetWorkflowTaskDataResult"" >
        <s:complexType>
         <s:sequence>
          <s:any minOccurs=""0"" maxOccurs=""unbounded"" />
         </s:sequence>
        </s:complexType>
      </s:element>
    </s:sequence>
  </s:complexType>
</s:element>");

            // Verify MS-PRSTFR requirement: MS-PRSTFR_R179
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                "MS-PRSTFR",
                179,
                @"[The complexType of rowset namespace] The following XML schema defines a subset of rowset namespace which is relevant in this context:
<xs:schema xmlns=""urn:schemas-microsoft-com:rowset"" 
            targetNamespace=""urn:schemas-microsoft-com:rowset""
            attributeFormDefault=""unqualified""
            elementFormDefault=""qualified"" 
            xmlns:xs=""http://www.w3.org/2001/XMLSchema"">
  <xs:attribute name=""name"" type=""xs:string"" />
  <xs:attribute name=""number"" type=""xs:int"" />
  <xs:attribute name=""precision"" type=""xs:unsignedByte"" />
  <xs:attribute name=""scale"" type=""xs:unsignedByte"" />
  <xs:attribute name=""CommandTimeout"" type=""xs:int""/>
  <xs:complexType name=""data"">
    <xs:sequence minOccurs=""0"" maxOccurs=""unbounded"">
      <xs:any minOccurs=""0"" maxOccurs=""unbounded"" namespace=""##any""
              processContents=""lax"" />
    </xs:sequence>
  </xs:complexType>
</xs:schema>");

            // The schema of GetWorkflowTaskData operation has been validated by full WSDL.
            // If it returns success, the schema of GetWorkflowTaskData operation is valid, and the type validation for each attribute is valid.
            // When validating full WSDL is correct which includes the type validation for each attribute, we can capture the following requirements. 
            // Verify MS-PRSTFR requirement: MS-PRSTFR_R185
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                "MS-PRSTFR",
                185,
                @"[The complexType of rowset namespace] precision: Precision is the number of digits in a floating point number.");

            // Verify MS-PRSTFR requirement: MS-PRSTFR_R187
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                "MS-PRSTFR",
                187,
                @"[The complexType of rowset namespace] scale: Scale is the number of digits to the right of the decimal point.");

            // Verify R321
            Site.CaptureRequirementIfIsTrue(
                isSuccess,
                321,
                @"[In GetWorkflowTaskDataResponse] GetWorkflowTaskDataResult: GetWorkflowTaskDataResult element contains an array of z:row elements, where the z is equal to #RowsetSchema in the ActiveX Data Objects (ADO) XML Persistence format (see [MS-PRSTFR]).");
        }