mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
How to match date param to a certain date range when using the Admin Api Client #523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doddi321 on GitHub (Jun 27, 2023).
Originally assigned to: @StefH on GitHub.
I'm using Testcontainers and using the the admin client to create the mappings like so:
I need to match a date query parameter to a certain date range, f.x. /api/claimants/modified?since=....
I know the LinqMatcher exists which seems fit my needs perfectly but the only thing that the .WithParams method accepts is the MatcherModel which seems to only support Regex.
Is what I am asking possible and if so how?
@StefH commented on GitHub (Jun 27, 2023):
Hello @doddi321.
Good question.
I'll take look.
@StefH commented on GitHub (Jun 27, 2023):
@doddi321
It should work, example:
@StefH commented on GitHub (Jun 27, 2023):
https://github.com/WireMock-Net/WireMock.Net/pull/961