The data that we use in test to emulate the upstream API should be generated using a builder pattern. This builder should create a load of JSON that is the same as the API responses.
This should borrow from (in terms of patterns and implementation, not output) @GeoWill's work here: DemocracyClub/UK-Polling-Stations#2985
The data that we use in test to emulate the upstream API should be generated using a builder pattern. This builder should create a load of JSON that is the same as the API responses.
This should borrow from (in terms of patterns and implementation, not output) @GeoWill's work here: DemocracyClub/UK-Polling-Stations#2985