Make unit testing even easier with a new pilot from Salesforce, a new mocking API.
This is going to be really interesting how it affects existing projects such as FFLIB Apex Commons and ApexMocks which offer similar functionality.
Make unit testing even easier with a new pilot from Salesforce, a new mocking API.
This is going to be really interesting how it affects existing projects such as FFLIB Apex Commons and ApexMocks which offer similar functionality.
This is the next in the series covering FFLIB and the enterprise design patterns. Previously I covered the unit of work pattern (UOW).
As mentioned in my introduction to FFLIB, the service layer is where we will place all of our business logic in our application. Think of the service layer of where you orchestrate all of your business logic.
It aims to solve one of the more common issues in larger applications, whereby logic becomes scattered or even worse, duplicated. By keeping our business logic defined in central place we encourage reuse and reduce logic from being scattered, increasing maintainability.