mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-03-26 11:01:03 +01:00
Updated Stubbing and Request Matching (markdown)
@@ -215,7 +215,7 @@ All of the standard helpers (template functions) provided by the C# Handlebars i
|
||||
`{{capitalize request.query.search}}`
|
||||
|
||||
## Stub priority
|
||||
It is sometimes the case that you’ll want to declare two or more stub mappings that “overlap”, in that a given request would be a match for more than one of them. By default, WireMock.NET will use the most recently added matching stub to satisfy the request. However, in some cases it is useful to exert more control.
|
||||
It is sometimes the case that you’ll want to declare two or more stub mappings that “overlap”, in that a given request would be a match for more than one of them.
|
||||
|
||||
One example of this might be where you want to define a catch-all stub for any URL that doesn’t match any more specific cases. Adding a priority to a stub mapping facilitates this:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user