Date: Thu, 28 Mar 2024 14:12:26 +0000 (UTC) Message-ID: <456286362.27.1711635146956@943e831290cb> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_26_95501251.1711635146956" ------=_Part_26_95501251.1711635146956 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
To test your custom form API implementation you need to be able to speci= fy the state of the form when the event handlers are fired. This class cont= ains this state.
B25.Tes= t_FormHelper.TestFormContext formContext =3D new B25.Test_FormHelper.TestFo= rmContext(); formContext.reservation =3D new B25__Reservation__c( B25__StartLocal__c =3D Datetime.now(), B25__EndLocal__c =3D Datetime.now().addHours(1) ); formContext.relatedSObjects.put('B25__ReservationContact__c', new List<S= Object>{ new B25__ReservationContact__c() });
Name |
Type |
Description |
---|---|---|
reservation |
B25__Reservation__c |
The reservation on the form during the firing of the event. |
relatedSObjects |
Map<String, List<SObject>> |
The related lists on the form during the firing of the events. |