public void MSOXCMAPIHTTP_S02_TC03_GetAddressBookUrl()
{
this.CheckMapiHttpIsSupported();
#region Call Bind request type to established a session context with the address book server.
this.Bind();
#endregion
#region cALL GetAddressBookUrl request type to get the URL of the specified address book server endpoint.
// The client MUST set this field to 0x00000000 and the server MUST ignore this field.
uint flagsOfGetAddressBookUrl = 0x00000000;
GetAddressBookUrlRequestBody getAddressBookUrlRequestBody = new GetAddressBookUrlRequestBody();
getAddressBookUrlRequestBody.Flags = flagsOfGetAddressBookUrl;
getAddressBookUrlRequestBody.UserDn = this.AdminUserDN;
getAddressBookUrlRequestBody.AuxiliaryBuffer = new byte[] { };
getAddressBookUrlRequestBody.AuxiliaryBufferSize = 0;
GetAddressBookUrlResponseBody getAddressBookUrlResponseBody = this.Adapter.GetAddressBookUrl(getAddressBookUrlRequestBody);
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCMAPIHTTP_R1106");
// Verify MS-OXCMAPIHTTP requirement: MS-OXCMAPIHTTP_R1106
this.Site.CaptureRequirementIfAreEqual<uint>(
0,
getAddressBookUrlResponseBody.ErrorCode,
1106,
@"[In GetAddressBookUrl Request Type] The GetAddressBookUrl request type is used by the client to the URL of the specified address book server endpoint (4).");
#endregion
#region Call the Unbind request type to destroy the session context.
this.Unbind();
#endregion
}