Microsoft.Protocols.TestSuites.MS_OXWSTASK.MS_OXWSTASKAdapter.VerifyDeleteItemOperation C# (CSharp) Method

VerifyDeleteItemOperation() private method

Verify the DeleteItemResponseType structure.
private VerifyDeleteItemOperation ( bool isSchemaValidated ) : void
isSchemaValidated bool The result of schema validation, true means valid.
return void
        private void VerifyDeleteItemOperation(bool isSchemaValidated)
        {
            // If the validation event return any error or warning, the schema validation is false, 
            // which indicates the schema is not matched with the expected result. 
            // So these requirement can be verified when the isSchemaValidation is true.

            // Add the debug information.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSTASK_R162");

            // Verify MS-OXWSTASK requirement: MS-OXWSTASK_R162  
            Site.CaptureRequirementIfIsTrue(
                isSchemaValidated,
                162,
                @"[In DeleteItem Operation] The following is the WSDL port type specification for the DeleteItem operation.<wsdl:operation name=""DeleteItem"">
                   <wsdl:input message=""tns:DeleteItemSoapIn"" />
                   <wsdl:output message=""tns:DeleteItemSoapOut"" />
                </wsdl:operation>");

            // Add the debug information.
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXWSTASK_R164");

            // Verify MS-OXWSTASK requirement: MS-OXWSTASK_R164            
            Site.CaptureRequirementIfIsTrue(
                isSchemaValidated,
                164,
                @"[In DeleteItem Operation] The following is the WSDL binding specification for the DeleteItem operation. <wsdl:operation name=""DeleteItem"">
                   <soap:operation soapAction=""http://schemas.microsoft.com/exchange/services/2006/messages/DeleteItem""/>
                   <wsdl:input>
                      <soap:header message=""tns:DeleteItemSoapIn"" part=""Impersonation"" use=""literal""/>
                      <soap:header message=""tns:DeleteItemSoapIn"" part=""MailboxCulture"" use=""literal""/>
                      <soap:header message=""tns:DeleteItemSoapIn"" part=""RequestVersion"" use=""literal""/>
                      <soap:body parts=""request"" use=""literal""/>
                   </wsdl:input>
                   <wsdl:output>
                      <soap:body parts=""DeleteItemResult"" use=""literal""/>
                      <soap:header message=""tns:DeleteItemSoapOut"" part=""ServerVersion"" use=""literal""/>
                   </wsdl:output>
                </wsdl:operation>");
        }