/
B25.Test_FormHelper.TestFormContext
B25.Test_FormHelper.TestFormContext
Overview
Object that is used to specify the form context inside of unit tests.
To test your custom form API implementation you need to be able to specify the state of the form when the event handlers are fired. This class contains this state.
Example
B25.Test_FormHelper.TestFormContext formContext = new B25.Test_FormHelper.TestFormContext();
formContext.reservation = new B25__Reservation__c(
B25__StartLocal__c = Datetime.now(),
B25__EndLocal__c = Datetime.now().addHours(1)
);
formContext.relatedSObjects.put('B25__ReservationContact__c', new List<SObject>{
new B25__ReservationContact__c()
});
Properties
Name |
---|