Microsoft.Protocols.TestSuites.MS_AUTHWS.MS_AUTHWSAdapter.ValidateAndCaptureCommonMessageSyntax C# (CSharp) Method

ValidateAndCaptureCommonMessageSyntax() private method

Validate common message syntax to schema and capture related requirements.
private ValidateAndCaptureCommonMessageSyntax ( ) : void
return void
        private void ValidateAndCaptureCommonMessageSyntax()
        {
            bool isResponseValid = SchemaValidation.ValidationResult == ValidationResult.Success;

            // If the server response is validated successfully, we can make sure that the server responds with an correct message syntax, MS-AUTHWS_R7, MS-AUTHWS_R8 and MS-AUTHWS_R9 can be verified.
            Site.CaptureRequirementIfIsTrue(
                isResponseValid,
                7,
                @"[In Common Message Syntax] The syntax of the definitions uses the XML Schema, as specified in [XMLSCHEMA1] and [XMLSCHEMA2].");

            Site.CaptureRequirementIfIsTrue(
                isResponseValid,
                8,
                @"[In Common Message Syntax] The syntax of the definitions uses Web Services Description Language, as specified in [WSDL].");

            Site.CaptureRequirementIfIsTrue(
                isResponseValid,
                9,
                @"[In Namespaces] This specification[MS-AUTHWS] defines and references various XML namespaces using the mechanisms specified in [XMLNS].");
        }