[PR #1185] [MERGED] Throw exception in case WithTransformer is used after WithBodyFromFile #1273

Closed
opened 2025-12-29 09:19:07 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/1185
Author: @StefH
Created: 9/29/2024
Status: Merged
Merged: 9/29/2024
Merged by: @StefH

Base: masterHead: bug/1184-transformer


📝 Commits (2)

  • d05b7bc Fix .WithBodyFromFile + .WithTransformer combination
  • c892b23 Ex

📊 Changes

7 files changed (+151 additions, -33 deletions)

View changed files

📝 src/WireMock.Net/ResponseBuilders/Response.WithBody.cs (+4 -0)
src/WireMock.Net/ResponseBuilders/Response.WithTransformer.cs (+36 -0)
📝 src/WireMock.Net/ResponseBuilders/Response.cs (+1 -23)
📝 src/WireMock.Net/Transformers/Transformer.cs (+3 -3)
📝 test/WireMock.Net.Tests/ResponseBuilders/ResponseWithTransformerTests.cs (+6 -7)
test/WireMock.Net.Tests/WireMockServerTests.WithTransformer.cs (+98 -0)
test/WireMock.Net.Tests/__admin/mappings/responseWithTransformer.xml (+3 -0)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/wiremock/WireMock.Net/pull/1185 **Author:** [@StefH](https://github.com/StefH) **Created:** 9/29/2024 **Status:** ✅ Merged **Merged:** 9/29/2024 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `bug/1184-transformer` --- ### 📝 Commits (2) - [`d05b7bc`](https://github.com/wiremock/WireMock.Net/commit/d05b7bcc14362663975701685cc5143076dc06b1) Fix .WithBodyFromFile + .WithTransformer combination - [`c892b23`](https://github.com/wiremock/WireMock.Net/commit/c892b236bb48cc044f512c0e674389a1bba21ece) Ex ### 📊 Changes **7 files changed** (+151 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/ResponseBuilders/Response.WithBody.cs` (+4 -0) ➕ `src/WireMock.Net/ResponseBuilders/Response.WithTransformer.cs` (+36 -0) 📝 `src/WireMock.Net/ResponseBuilders/Response.cs` (+1 -23) 📝 `src/WireMock.Net/Transformers/Transformer.cs` (+3 -3) 📝 `test/WireMock.Net.Tests/ResponseBuilders/ResponseWithTransformerTests.cs` (+6 -7) ➕ `test/WireMock.Net.Tests/WireMockServerTests.WithTransformer.cs` (+98 -0) ➕ `test/WireMock.Net.Tests/__admin/mappings/responseWithTransformer.xml` (+3 -0) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 09:19:07 +01:00
adam closed this issue 2025-12-29 09:19:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#1273