Microsoft.Protocols.TestSuites.MS_OXCMAPIHTTP.MS_OXCMAPIHTTPAdapter.VerifyUnbindResponseBody C# (CSharp) Method

VerifyUnbindResponseBody() private method

Verify the Unbind response body related requirements.
private VerifyUnbindResponseBody ( UnbindResponseBody unbindResponseBody ) : void
unbindResponseBody UnbindResponseBody The Unbind response body to be verified.
return void
        private void VerifyUnbindResponseBody(UnbindResponseBody unbindResponseBody)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R367");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R367
            this.Site.CaptureRequirementIfIsInstanceOfType(
                unbindResponseBody.StatusCode,
                typeof(uint),
                367,
                @"[In Unbind Request Type Success Response Body] StatusCode (4 bytes): An unsigned integer that specifies the status of the request.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1291
            this.Site.CaptureRequirementIfAreEqual<uint>(
                0,
                unbindResponseBody.StatusCode,
                1291,
                @"[In Unbind Request Type Success Response Body] [StatusCode] This field MUST be set to 0x00000000.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R368
            this.Site.CaptureRequirementIfIsInstanceOfType(
                unbindResponseBody.ErrorCode,
                typeof(uint),
                368,
                @"[In Unbind Request Type Success Response Body] ErrorCode (4 bytes): An unsigned integer that specifies the return status of the operation.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R369
            this.Site.CaptureRequirementIfIsInstanceOfType(
                unbindResponseBody.AuxiliaryBufferSize,
                typeof(uint),
                369,
                @"[In Unbind Request Type Success Response Body] AuxiliaryBufferSize (4 bytes): An unsigned integer that specifies the size, in bytes, of the AuxiliaryBuffer field.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R370
            this.Site.CaptureRequirementIfIsInstanceOfType(
                unbindResponseBody.AuxiliaryBuffer,
                typeof(byte[]),
                370,
                @"[In Unbind Request Type Success Response Body] AuxiliaryBuffer (variable): An array of bytes that constitute the auxiliary payload data returned from the server.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R371
            this.Site.CaptureRequirementIfAreEqual<uint>(
                unbindResponseBody.AuxiliaryBufferSize,
                (uint)unbindResponseBody.AuxiliaryBuffer.Length,
                371,
                @"[In Unbind Request Type Success Response Body] [AuxiliaryBuffer] The size of this field, in bytes, is specified by the AuxiliaryBufferSize field.");
        }
        #endregion
MS_OXCMAPIHTTPAdapter