private void VerifyObjectMovedNotificationElements(RopNotifyResponse notifyResponse)
{
// The value 0x0020 of NotificationType means this notification is for ObjectMoved event,
// this method is called after notification for ObjectMoved to verify response elements.
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCNOTIF_R18301");
// Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R18301
// The value 0x0020 of NotificationType means that notification is for a ObjectMoved event.
// So if the OldFolderId in the response is not null, this requirement can be verified.
this.Site.CaptureRequirementIfIsNotNull(
notifyResponse.NotificationData.OldFolderId,
18301,
@"[In NotificationData Structure] This field [OldFolderId] is available if the NotificationType value in the NotificationFlags field is 0x0020.");
if ((notifyResponse.NotificationData.NotificationFlags & (ushort)FlagsBit.M) != (ushort)FlagsBit.M)
{
// Add the debug information
this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCNOTIF_R19101");
// Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R19101
this.Site.CaptureRequirementIfIsNotNull(
notifyResponse.NotificationData.OldParentFolderId,
19101,
@"[In NotificationData Structure] This field [OldParentFolderId] is available if the value of the NotificationType in the NotificationFlags field is 0x0020 and bit 0x8000 is not set in the NotificationFlags field.");
}
}