Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of using domains of arbitrary ApexTypes #50

Open
cropredyHelix opened this issue Jan 4, 2023 · 0 comments
Open

Example of using domains of arbitrary ApexTypes #50

cropredyHelix opened this issue Jan 4, 2023 · 0 comments

Comments

@cropredyHelix
Copy link

When the domain class was split into triggerHandler and domain classes, the PR #300 author @wimvelzeboer mentioned that domains could now be arbitrary ApexTypes

It would be nice to see this sample repo extended to show such an example. This would include:

  • Factory construction in the Application.cls
  • ApexMocks support (enabled by Factory construction)

As I understand it, such domains of arbitrary ApexTypes extend fflib_Objects but I believe to implement factories and mocking support, some changes are needed in fflib_Application.cls to support something other than SObjectTypes as keys to the constructor class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant