In the Dorset downstream project, the Unit Tests fail to execute in a timely fashion. This is due to the IMemoryCache mock - and it's poor performance when the Snomed codes are populated.
This PR replaces the unnecessary mock, and uses a newly instantiated MemoryCache for each test execution.
With a full Snomed dataset, the Unit Tests now complete in a more reasonable time window. As seen here:
Note: I have also updated the test to use a Snomed code from an example provided in this NHS article.
In the Dorset downstream project, the Unit Tests fail to execute in a timely fashion. This is due to the
IMemoryCache
mock - and it's poor performance when the Snomed codes are populated.This PR replaces the unnecessary mock, and uses a newly instantiated
MemoryCache
for each test execution.With a full Snomed dataset, the Unit Tests now complete in a more reasonable time window. As seen here:
Note: I have also updated the test to use a Snomed code from an example provided in this NHS article.