-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ambiguity when mocking RequestURI with QueryString #42
Comments
Thanks for inquiring. This is by design (historically that is, before |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey,
Thank you for writing this awesome library !
While using it I ran into a fun challenge :)
While mocking a Http Request with RequestURI and QueryString, like this:
The request matcher does not match the request even though the InvokedRequest and the Matcher URI and QueryString, combined is a perfect match.
To make the request work, I need to add '*' at the end of the URI, like this:
When I looked through the code, here:
MockHttp/src/MockHttp/Extensions/RequestMatchingExtensions.cs
Line 35 in a1c7a90
I'll be happy to give it a try and create a PR with a fix if this is not intended behaviour.
The text was updated successfully, but these errors were encountered: