Microsoft.Protocols.TestSuites.MS_OXCNOTIF.S02_SubscribeAndReceiveNotifications.VerifyTableChangedNotificationElements C# (CSharp) Method

VerifyTableChangedNotificationElements() private method

This method is used to verify RopNotify response elements for TableChanged event.
private VerifyTableChangedNotificationElements ( RopNotifyResponse notifyResponse ) : void
notifyResponse RopNotifyResponse The notification response
return void
        private void VerifyTableChangedNotificationElements(RopNotifyResponse notifyResponse)
        {
            // The value 0x0001 of TableEventType means this notification is for TableChanged event, 
            // this method is called after notification for TableChanged to verify response elements.
            // Add the debug information
            this.Site.Log.Add(LogEntryKind.Debug, "Verify MS-OXCNOTIF_R14204");

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R14204
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the TableRowFolderID is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.TableRowFolderID,
                14204,
                @"[In NotificationData Structure] This field [TableRowFolderID] is not available if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R15403
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the InsertAfterTableRowFolderID is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.InsertAfterTableRowFolderID,
                15403,
                @"[In NotificationData Structure] This field [InsertAfterTableRowFolderID] is not available if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R15803
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the InsertAfterTableRowID is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.InsertAfterTableRowID,
                15803,
                @"[In NotificationData Structure] This field [InsertAfterTableRowID] is not available if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R16403
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the TableRowDataSize is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.TableRowDataSize,
                16403,
                @"[In NotificationData Structure] This field [TableRowDataSize] is not available if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R16703
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the TableRowData is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.TableRowData,
                16703,
                @"[In NotificationData Structure] This field [TableRowData] is not available  if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R14604
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the TableRowMessageID is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.TableRowMessageID,
                14604,
                @"[In NotificationData Structure] This field [TableRowMessageID] is not available if the TableEventType field is 0x0001.");

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

            // Verify MS-OXCNOTIF requirement: MS-OXCNOTIF_R15004
            // TableEventType with value 0x0001 means the notification is for TableChanged event, so if the TableRowInstance is null, this requirement can be verified.
            this.Site.CaptureRequirementIfIsNull(
                notifyResponse.NotificationData.TableRowInstance,
                15004,
                @"[In NotificationData Structure] This field [TableRowInstance] is not available if the TableEventType field is 0x0001.");
        }
S02_SubscribeAndReceiveNotifications