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

VerifyComapreMinIdsResponsebody() private method

Verify the ComapreMinIds response body related requirements.
private VerifyComapreMinIdsResponsebody ( CompareMinIdsResponseBody compareMinIdsResponseBody ) : void
compareMinIdsResponseBody CompareMinIdsResponseBody The CompareMinIds response body to be verified.
return void
        private void VerifyComapreMinIdsResponsebody(CompareMinIdsResponseBody compareMinIdsResponseBody)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R399");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R399
            this.Site.CaptureRequirementIfIsInstanceOfType(
                compareMinIdsResponseBody.StatusCode,
                typeof(uint),
                399,
                @"[In CompareMinIds 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_R1290");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1290
            this.Site.CaptureRequirementIfAreEqual<uint>(
                0,
                compareMinIdsResponseBody.StatusCode,
                1290,
                @"[In CompareMinIds 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_R400");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R400
            this.Site.CaptureRequirementIfIsInstanceOfType(
                compareMinIdsResponseBody.ErrorCode,
                typeof(uint),
                400,
                @"[In CompareMinIds 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_R401");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R401
            this.Site.CaptureRequirementIfIsInstanceOfType(
                compareMinIdsResponseBody.Result,
                typeof(int),
                401,
                @"[In CompareMinIds Request Type Success Response Body] Result (4 bytes): A signed integer that specifies the result of the comparison.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R402
            this.Site.CaptureRequirementIfIsInstanceOfType(
                compareMinIdsResponseBody.AuxiliaryBufferSize,
                typeof(uint),
                402,
                @"[In CompareMinIds 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_R403");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R403
            this.Site.CaptureRequirementIfIsInstanceOfType(
                compareMinIdsResponseBody.AuxiliaryBuffer,
                typeof(byte[]),
                403,
                @"[In CompareMinIds 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_R404");

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