Skip to content
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

Assertion matching by URL query parameters #41

Closed
rhatherall opened this issue Dec 7, 2020 · 0 comments
Closed

Assertion matching by URL query parameters #41

rhatherall opened this issue Dec 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@rhatherall
Copy link
Member

It would be really useful to be able to make an assertion that matches a URL query parameter. An example assertion would look like:

WebMock.Assert
  .Get('/document')
  .WithQueryParam('ParamName', 'ParamValue')
  .WasRequested;

The usual complement of wildcard * and RegEx matching should be available too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant