fflib-apex-common-samplecode icon indicating copy to clipboard operation
fflib-apex-common-samplecode copied to clipboard

Samples application illustrating the Apex Enterprise Patterns library

Results 12 fflib-apex-common-samplecode issues
Sort by recently updated
recently updated
newest added

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 ![image](https://user-images.githubusercontent.com/55927613/138197955-b2b9e603-df98-4b9b-b05d-2cedcba7fa8c.png) But it did not execute. Why? ![image](https://user-images.githubusercontent.com/55927613/138197980-d565ad9a-47eb-4374-9a94-4c0de2761acd.png) ![image](https://user-images.githubusercontent.com/55927613/138198165-165df840-df6a-4c97-a18f-fefb8262da85.png) ![image](https://user-images.githubusercontent.com/55927613/138198147-da844fcf-6867-4050-94cd-ca793d1e099b.png) 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...

question

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...

question

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...

question