Mocking derived class with abstract base class
Hi, I have the following setup:
Now I would like to unit test GetSomeStuff, and ensuring correct HTTP status codes are returned based on response from .GetAsync() method. How would I unit test this?
2 Replies
that wouldn't be a unit test afaik, that's technically an end-to-end test.
or implementation test
I would of course mock away all dependencies.
I would only like to ensure that depending on what the answer is from
the correct HTTP response is returned.