private void VerifyPINGRequestType(CommonResponse commonResponse, ServerEndpoint endpoint, uint responseCode)
{
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1460");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1460
this.Site.CaptureRequirementIfAreEqual<int>(
0,
commonResponse.ResponseBodyRawData.Length,
1460,
@"[In PING Request Type] The PING request type has no response body.");
if (responseCode == 0 && endpoint == ServerEndpoint.MailboxServerEndpoint)
{
// If the code can reach here, that means the Mailbox server endpoint executes successfully, R1127 is verified successfully.
this.Site.CaptureRequirement(
1127,
@"[In PING Request Type] The PING request type is supported by the mailbox server endpoint (4).");
}
else if (responseCode == 0 && endpoint == ServerEndpoint.AddressBookServerEndpoint)
{
// If the code can reach here, that means the AddressBook server endpoint executes successfully, R1128 is verified successfully.
this.Site.CaptureRequirement(
1128,
@"[In PING Request Type] The PING request type is supported by the address book server endpoint (4).");
}
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1247");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1247
// If the response is not null, that means the server responds to a PING request type.
this.Site.CaptureRequirementIfIsNotNull(
commonResponse,
1247,
@"[In Responding to a PING Request Type] The server responds to a PING request type by returning a PING request type response, as specified in section 2.2.6.");
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1249");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1249
this.Site.CaptureRequirementIfIsTrue(
commonResponse.MetaTags.Count != 0 && commonResponse.ResponseBodyRawData.Length == 0,
1249,
@"[In Responding to a PING Request Type] Meta-tags can be returned, but no response body is returned.");
}