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

VerifyRequestTypesForAddressBookServerEndpoint() private method

Verify the request types for address book server endpoint related requirements.
private VerifyRequestTypesForAddressBookServerEndpoint ( 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 VerifyRequestTypesForAddressBookServerEndpoint(WebHeaderCollection headers, CommonResponse commonResponse)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R321, the value of X-RequestType header is {0}", headers["X-RequestType"]);
        
            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R321
            this.Site.CaptureRequirementIfIsTrue(
                this.requestTypeList.Contains(headers["X-RequestType"]),
                321,
                @"[In Request Types for Address Book 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_R1463");
        
            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1463
            // This structure of response body is parsed according to the request of this Specification, if the response body exists, R1463 is verified successfully.
            this.Site.CaptureRequirementIfIsNotNull(
                commonResponse,
                1463,
                @"[In Request Types for Address Book 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 R1462 is invoked successfully.
            this.Site.CaptureRequirement(
                1462,
                @"[In Request Types for Address Book Server Endpoint] Response body is separated from the common response by a blank line, as specified in [RFC2616].");
        }
MS_OXCMAPIHTTPAdapter