/
B25.Test_FormHelper.TestRelatedListEvent

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.

Related content

B25.Test_FormHelper.TestChangeEvent
B25.Test_FormHelper.TestChangeEvent
More like this
Unit Testing the Custom Form Logic
Unit Testing the Custom Form Logic
More like this
B25.SearchResult
B25.SearchResult
Read with this
B25.Test_FormHelper.TestFormContext
B25.Test_FormHelper.TestFormContext
More like this
Code Sample Library
Code Sample Library
Read with this
B25.Test_FormHelper.TestSearchContext
B25.Test_FormHelper.TestSearchContext
More like this