markvincze / Stubbery

Library for creating Api stubs in .NET. https://markvincze.github.io/Stubbery/
MIT License
74 stars 14 forks source link

Switch to EnableBuffering, and make the match methods async #24

Closed markvincze closed 4 years ago

markvincze commented 4 years ago

This PR adds netcoreapp3.1 as a second target framework to the test project to make sure we run our tests on both frameworks.

The EnableRewind() call was replaced with EnableBuffering(), because EnableRewind() is in an internal dll, and cause some assembly not found exceptions.

In 3.1 synchronous operations on the Request and Response are not allowed by default, thus these were changed to be Async. This rippled up in the call chains related to request matching.