You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When .WithBodyFromFile(responseFilePath) is used in combination with .WithTransformer(transformContentFromBodyAsFile: true) the server returns empty string.
Expected behavior:
The server should return transformed contents of the file.
Hi.
After some debugging of the WireMock.Net I've found that .WithTransformer(transformContentFromBodyAsFile: true) should be placed before .WithBodyFromFile() to be able to work as expected, but in examples form the Wiki it is placed after .WithBodyFromFile().
So, just need to update the article and the issue may be closed.
Anyway, thank you for the great project!
Describe the bug
When .WithBodyFromFile(responseFilePath) is used in combination with .WithTransformer(transformContentFromBodyAsFile: true) the server returns empty string.
Expected behavior:
The server should return transformed contents of the file.
Test to reproduce
I've created a project with tests to demonstrate the problem. Please look at it.
https://github.com/vitalyve/WireMockNetBodyFromFileWithTransformerBug
The text was updated successfully, but these errors were encountered: