A mockable wrapper for System.Net.Http.HttpClient.
Install the NuGet package into your application.
Install-Package MockableHttp
dotnet add package MockableHttp
The IHttpService
interface exposes properties and methods mirroring System.Net.Http.HttpClient
and allows it to be
mocked during testing.
The concrete HttpService
class implements IHttpService
and forwards calls to System.Net.Http.HttpClient
for use in
production.