I created this project to demonstrate how easy it is to use NUnit and Moq to write Unit tests for your class that has a dependency on HttpClient.
Checkout more details on my blog https://chaitanyasuvarna.wordpress.com/2020/09/06/nunit-test-for-httpclient-moq/