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

Upload VAT VIES example of interface-based injection #2

Open
lvanvugt opened this issue Dec 5, 2022 · 0 comments
Open

Upload VAT VIES example of interface-based injection #2

lvanvugt opened this issue Dec 5, 2022 · 0 comments

Comments

@lvanvugt
Copy link
Contributor

lvanvugt commented Dec 5, 2022

In chapter 13 of my book I discuss how to test double calls to external services using as an example the VAT Registration number validation feature in standard BC. This calls upon the EU VAT registration validation service. The call has, however, been hard coded and as such is not easy to test double. In the book I show a possible approach making use of dependency injection (after having tweeked the standard code somewhat). In this example I do not yet make use of interface-based injection.
In this example however I do.

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