Skip to content

Upload VAT VIES example of interface-based injection #2

@lvanvugt

Description

@lvanvugt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions