-
Notifications
You must be signed in to change notification settings - Fork 53
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
changes to allow Supplementer to be called from ApplicationSObjectDo… #35
Conversation
Hi @dmchaplin. Thank you for your interest in and contributing to the AT4DX library. The With the sole purpose of this pattern being temporary and testing based, including it in the The supplementer supports two SOLID architecture principles:
The AT4DX sample code repo [1] has examples of the intended usage of the pattern. Note the two files.
|
Thanks for the well-thought-out response. Learning AT4DX has been very rewarding. I've never liked using .isRunningTest() in code, but SOC is a good justification for why that is the case. It makes sense that MarketingFieldsForAccountsSupplementer would exist in the same scope as the Account Sobject. How does the legacy code know to call supplement()? Is it a one-time edit to each of those test classes to add it? Thanks, shiny side up and tailwinds. |
You're correct that the unit tests would need the one-time addition of the "shiny side up and tailwinds" Are you a fan of aviation? 💯 Best wishes. |
Yes, I own a '67 Skyhawk and have somewhere around 600 hours. Somewhere along the line, I spotted your linked-in profile and thought I'd give you a shout-out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dmchaplin
Partly as an experiment since we recently implemented Github Actions to automatically run unit tests on PRs, would you be so kind as to submit a white-space change to kick-off that process?
I looked for a way to do so myself but was unsuccessful. I will completely understand if you're too busy to do so.
Thanks!
White-space change to initiate unit-test run.
@dmchaplin |
@dmchaplin This change was incorporated into the recent "improved test coverage" work. Thank you for the great catch and solution on this. GG |
…main.
proposed solution:
Fixes #33
supplement would no longer need to be called explicitly during tests.
This change is