B25.Test_FormHelper.TestRelatedListEvent

Overview

Object that is used to specify the related list sObject change event inside of unit tests.

To test your custom form API implementation you need to be able to specify the event that is being fired this class represents the related list add or remove event data.

Example

B25.Test_FormHelper.TestRelatedListEvent changeEvent = new B25.Test_FormHelper.TestRelatedListEvent(); changeEvent.relatedSObjectType = B25__ReservationContact__c.SObjectType; changeEvent.addedSObjectId = someContact.Id; changeEvent.changedRelatedListItem = new B25__ReservationContact__c( B25__Contact_Lookup__c = someContact.Id );

Properties

Name

Type

Description

Name

Type

Description

relatedSObjectType

SObjectType

The sObjectType of the related list.

addedSObjectId

String

The id of the dimension sObject that has been clicked on. If this option was a custom option it should be set to that custom options Id.

changedRelatedListItem

SObject

The deleted or added related list item.