Closed doddi321 closed 1 year ago
Hello @doddi321.
Good question.
I'll take look.
@doddi321 It should work, example:
[
{
"Guid": "41372914-1838-4c67-916b-b9aacdd096ce",
"UpdatedAt": "2023-01-14T15:16:17",
"Request": {
"Path": {
"Matchers": [
{
"Name": "WildcardMatcher",
"Pattern": "/foo",
"IgnoreCase": false
}
]
},
"Methods": [
"GET"
],
"Params": [
{
"Name": "test",
"Matchers": [
{
"Name": "LinqMatcher",
"Pattern": "it.Length < 10"
}
]
}
]
},
"Response": {
"BodyDestination": "SameAsSource",
"Body": "{ msg: \"Hello world!\"}"
}
}
]
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?