Skip to content

v1.3.0

Compare
Choose a tag to compare
@maxkagamine maxkagamine released this 16 Dec 08:41
· 20 commits to master since this release
51671a4
  • 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).