Microsoft.Protocols.TestSuites.MS_SITESS.MS_SITESSAdapter.VerifyDeleteWeb C# (CSharp) Méthode

VerifyDeleteWeb() private méthode

Verify VerifyDeleteWeb related requirements.
private VerifyDeleteWeb ( ) : void
Résultat void
        private void VerifyDeleteWeb()
        {
            Site.Log.Add(LogEntryKind.Comment, "Verify common requirements in DeleteWeb operation.");
            this.VerifyCommonReqs();

            // When code can run to this line, it indicates the soap out message for this operation is received, else the operation will throw exception above.
            // So this operation's description is consistent with server.
            Site.CaptureRequirement(
                313,
                @"[In DeleteWeb] [The DeleteWeb operation is defined as:] <wsdl:operation name=""DeleteWeb"">
              <wsdl:input message=""tns:DeleteWebSoapIn"" />
              <wsdl:output message=""tns:DeleteWebSoapOut"" />
              </wsdl:operation>");

            bool isSchemaRight = SchemaValidation.XmlValidationErrors.Count == 0 && SchemaValidation.XmlValidationWarnings.Count == 0;

            // When the variable isSchemaRight is true, it exposes that the message's format described in the Open Specification is consistent with server. So we can verify R315.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R315");

            // Verify MS-SITESS requirement: MS-SITESS_R315
            Site.CaptureRequirementIfIsTrue(
                isSchemaRight,
                315,
                @"[In DeleteWeb] [The client sends a DeleteWebSoapIn request message and] the server responds with a DeleteWebSoapOut response message upon successful completion of deleting the subsite.");

            // When the variable isSchemaRight is true, it exposes that the message's format described in the Open Specification is consistent with server. So we can verify R321.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R321");

            // Verify MS-SITESS requirement: MS-SITESS_R321
            Site.CaptureRequirementIfIsTrue(
                isSchemaRight,
                321,
                @"[In DeleteWebSoapOut] The SOAP body contains a DeleteWebResponse element.");

            // When the variable isSchemaRight is true, it exposes that the message's format described in the Open Specification is consistent with server. So we can verify R326.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-SITESS_R326");

            // Verify MS-SITESS requirement: MS-SITESS_R326
            Site.CaptureRequirementIfIsTrue(
                isSchemaRight,
                326,
                @"[In DeleteWebResponse] [The DeleteWebResponse element is defined as:] <s:element name=""DeleteWebResponse"">
              <s:complexType />
              </s:element>");
        }