9 ms·
I would argue that when you are at the point of testing that the actual api works as you expect what you need is an integration test not a unit test. And you sh
by zaphar 3y ago
I would argue that when you are at the point of testing that the actual api works as you expect what you need is an integration test not a unit test. And you shouldn't mock it because if you mock it you won't actually be testing what you wanted to test. For unit tests use a Fake for anything that interacts with an external system.