
Unit testing HttpClient
There are several ways to unit test the results of calling HttpClient but we’ve outlined two here. Consider them opposite sides to the same coin. The first uses Moq and the second implements a mock HttpMessageHandler directly.
Unit tests

