Integrating with an external API is something that I do over and over again. While a lot of APIs have clients built specifically for .NET, spinning up a new HttpClient is at least a monthly pleasure. Calling an API using HttpClient is easy, but unit testing code using a HttpClient is not always a walk in the park. In this post, I'll introduce you to a way of mocking requests when using a HttpClient. For the rest of this post, I'll use a simple example. I have implemented a quick CLI that can ou