Mockhttp Versions Save

Testing layer for Microsoft's HttpClient library. Create canned responses using a fluent API.

v7.0.0

7 months ago
  • Change target profiles to netstandard1.1, netstandard2.0, net5.0, net6.0 (BREAKING)
  • Change default fallback behaviour to throw an exception with a report of the match attempts
  • Add JSON and XML matchers
  • Add support for synchronous HttpClient.Send #104
  • Modernize source #41 and add SourceLink support #66
  • Fix matching of encoded URL paths #116
  • Throw a descriptive error when matching on a mocked request with no response #87 (thanks perfectsquircle!)
  • Fix race condition on outstanding requests exception message #96 (thanks jr01!)

v6.0.0

4 years ago
  • Assemblies are now strong named (binary BREAKING) #1

v5.0.0

5 years ago

Align with official recommendations on multi-targetting HttpClient:

  • Add netstandard2.0 target #61
  • Change .NET 4.5 target to use in-band System.Net.Http reference (BREAKING) #61
  • Remove PCL profile 111 (BREAKING) #18

v4.0.0

5 years ago
  • Default Fallback message now includes request method and URL (BREAKING) - Fixes #57
  • Deprecated FallbackMessage property removed (BREAKING)

v3.3.0

6 years ago

Added overloads for including custom headers in the response (thanks Sascha Kiefer!)

v3.2.1

6 years ago
  • XML documentation is now included in the NuGet package. Fixes #52

v3.2.0

6 years ago
  • MockHttpMessageHandler now tracks successful matches. Fixes #35
  • Added WithExactQueryString / WithExactFormData overloads. Fixes #37
  • Added BackendDefinitionBehavior to allow matching Backend Definitions when Request Expectations exist, but don't match. Fixes #45
  • Fixed typo in Response(HttpResponseMessage) obsolete message. Fixes #44

v3.1.0

6 years ago
  • Bump major version to work around bug in NuGet. Fixes #50

v1.5.1

6 years ago
  • Respond(HttpClient) now works as expected. Fixes #39
  • HttpResponseMessage can be disposed without breaking future requests. Fixes #33

v1.5.0

7 years ago
  • WithHeaders now also matches against Content-* headers (thanks Cory Lucas!)