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

VerifyConnectOrBindResponse() private method

Verify the Connect or Bind response related requirements.
private VerifyConnectOrBindResponse ( WebHeaderCollection headers ) : void
headers System.Net.WebHeaderCollection The headers to be verified.
return void
        private void VerifyConnectOrBindResponse(WebHeaderCollection headers)
        {
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1146");

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1146
            this.Site.CaptureRequirementIfIsFalse(
                string.IsNullOrEmpty(headers["X-ClientInfo"]),
                1146,
                @"[In Creating a Session Context by Using the Connect or Bind Request Type] This information [X-ClientInfo header] is simply returned to the client in the response.");

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

            // Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1221
            this.Site.CaptureRequirementIfIsFalse(
                string.IsNullOrEmpty(headers["Set-Cookie"]),
                1221,
                @"[In Responding to a Connect or Bind Request Type Request] The server MUST return the cookie that represents the Session Context as the value of the Set-Cookie header field, as specified in section 2.2.3.2.3.");
        }
MS_OXCMAPIHTTPAdapter