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

VerifyRequestTypesForMailboxServerEndpoint() private method

Verify the Request Types For Mailbox Server Endpoint related requirements.
private VerifyRequestTypesForMailboxServerEndpoint ( WebHeaderCollection headers, CommonResponse commonResponse ) : void
headers System.Net.WebHeaderCollection The headers to be verified.
commonResponse CommonResponse The CommonResponse to be verified.
return void
        private void VerifyRequestTypesForMailboxServerEndpoint(WebHeaderCollection headers, CommonResponse commonResponse)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R176, the value of X-RequestType header is {0}", headers["X-RequestType"]);

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R176
            this.Site.CaptureRequirementIfIsTrue(
                this.requestTypeList.Contains(headers["X-RequestType"]),
                176,
                @"[In Request Types for Mailbox Server Endpoint] The X-RequestType header, specified in section 2.2.3.3.1, identifies which request type is being used.");

            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1431");
        
            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1431
            // This structure of response body is parsed according to the request of this Specification, if the response body exists, R1431 is verified successfully.
            this.Site.CaptureRequirementIfIsNotNull(
                commonResponse,
                1431,
                @"[In Request Types for Mailbox Server Endpoint] The response body associated with the specific request types are each a raw binary data binary large object (BLOB) that follows the common response format, as specified in section 2.2.2.2.");

            // This structure of common response is parsed according to the request of this Specification, if the code run to here and passed, 
            // that means R1461 is invoked successfully.
            this.Site.CaptureRequirement(
                1461,
                @"[In Request Types for Mailbox Server Endpoint] Response body is separated from the common response by a blank line, as specified in [RFC2616].");
        }
        /// <summary>
MS_OXCMAPIHTTPAdapter