mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 22:30:41 +01:00
Question: Transformer and Delay in Static Mappings? #108
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 @rangerranger on GitHub (Jun 4, 2018).
Originally assigned to: @StefH on GitHub.
Hi - Do you know if it is possible to add the WithTransformer and WithDelay to already recorded static mappings? Wanted to check if this was already known before running some tests. Thank you.
Aroon
@StefH commented on GitHub (Jun 4, 2018):
By static mappings, I think you mean the mappings defined in the .json file which are loaded at startup?
This is possible.
Transformation can be done like:
And delay is like:
See also this example https://github.com/WireMock-Net/WireMock.Net/wiki/Admin-API-Reference#post-__adminmappings
@rangerranger commented on GitHub (Jun 4, 2018):
Thank you Stef.
Aroon