-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Historically, each of the ADDS services has developed its own stubs or mock services, leading to a profusion of 'test' projects, each of which have to be separately managed, deployed and maintained.
ADDS Mock was born from the desire to have one centralised set of Mock services that could be quickly integrated with new or existing services, saving development time and increasing test discoverability and quality.
It is focused solely on providing robust mock support for ADDS Services.
This set of pages walks through creating a mock service using ADDS Mock. ADDS Mock 2.0 makes a departure from the initial version, which used configuration-based mocking. There is an explanation of why we have done this here.
ADDS Mock is delivered by means of Git submodule. If you're not familiar with Git submodules, there is a great article on what they are and how to use them here.
Once you have set up the submodule, you can simply add UKHO.ADDS.Mocks.csproj to your solution, and start using ADDS Mock. You can deploy it using whatever pipeline or mechanism you have set up - it just becomes part of your project. You might also want to add a reference to the UKHO.ADDS.Mocks.Client.csproj project, which helps in writing tests against the ADDS Mock service.