Skip to content

Releases: maxkagamine/Moq.Contrib.HttpClient

v1.4.0

09 Jul 06:32
8d3dc66
Compare
Choose a tag to compare

v1.3.0

16 Dec 08:41
51671a4
Compare
Choose a tag to compare
  • Return new response instance on each request (#4)
    • Prevents subsequent requests to the same setup from receiving already-disposed instances. This can happen either by the code under test wrapping the response in a using or by HttpClient's GetStringAsync and GetByteArrayAsync which do the same.
    • Streams passed to ReturnsResponse are now wrapped to allow multiple requests/setups to read from the same stream without interfering with each other (if seekable, such as MemoryStream).
    • The RequestMessage property on HttpResponseMessage is now correctly populated (except SetupRequestSequence).

v1.2.0

13 Dec 03:42
df50766
Compare
Choose a tag to compare

Initial release