apex-enterprise-patterns / fflib-apex-common

Common Apex Library supporting Apex Enterprise Patterns and much more!
BSD 3-Clause "New" or "Revised" License
899 stars 514 forks source link

Simplification of setting mocks for Selectors and Domains #453

Open foxysolutions opened 1 year ago

foxysolutions commented 1 year ago

2023-06-05: fflib_Application.cls: Extending Selector and Domain Factories with setMock() method which doesn't require .sObjectType() to be mocked


This change is Reviewable

foxysolutions commented 1 year ago

@ImJohnMDaniel I've updated the branch to match master again, but not sure if that was the only reason why you assigned it back to me? Thanks!

ImJohnMDaniel commented 1 year ago

@foxysolutions -- you are all good. I routinely "assign" PRs to the person that opened it. Just waiting for reviews from other team members (who may actually be on PTO this week), so I ask for your patience.

foxysolutions commented 7 months ago

@afawcett @ImJohnMDaniel any review possible on this small change, to simplify how mocks are being set? It was already reviewed once, so pending for 2nd one. Cheers!

wimvelzeboer commented 7 months ago

@foxysolutions If you already want to start working with this new method, then you can also add the fflib-apex-extensions repo to your project. The fflib_ClassicXXXFactory and the fflib_DynamicXXXFactory already have this method.