fflib-apex-common-samplecode
fflib-apex-common-samplecode copied to clipboard
Samples application illustrating the Apex Enterprise Patterns library
The IOpportunitiesSelector does not cover the following methods in OpportunitiesSelector: - List selectById(Set idSet) - List selectOpportunityInfo(Set idSet) - Database.QueryLocator queryLocatorReadyToInvoice()
As you can see below, the worker was called  But it did not execute. Why?    In a E2E test it works as expected. It just does...
I noticed 7 months ago changes were made to separate the Domain into two entities, one to work as the trigger handler and the other to basically manipulate data. This...
Because records in a before insert/before update trigger should not be updated, it would be good to have an example of how to deal with them. The sample code only...
With message System.AssertException: Assertion Failed: Expected: Last Opportunity Raised, Actual: null Is it supposed to fail?
When creating an _AccountsServiceTest_ (similar to the _OpportunitiesServiceTest_ in the sample), I have the following error: > Ambiguous method signature: void setMock. The test method: ``` @IsTest private static void...
I am working on a project in which we need to test an APEX REST Service in such a way that no actual data is created in Salesforce during the...
Unfortunately, @afawcett's DreamForce 2013 session recording video has been marked as private on YouTube... 😢 I think it would be very beneficial to new developers if it could be made...
Hi @ImJohnMDaniel In these examples I see that thee are a number of different ways to create new instances for the several classes. For domains there is a static method...
By way of example, I've excerpted from the samplecode Domain `Opportunities.cls`. **Is this by design?** If `onValidate()` places an error via `opp.Type.addError(error(msg,opp,fieldToken))` on some record in the batch, say record...