[PR #102] [MERGED] Feature: add WithBody(req => dostuff) style callback #767

Closed
opened 2025-12-29 08:33:28 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/wiremock/WireMock.Net/pull/102
Author: @alastairtree
Created: 3/2/2018
Status: Merged
Merged: 3/3/2018
Merged by: @StefH

Base: masterHead: feat/callback-on-body


📝 Commits (1)

  • 5117f1d feat: add WithBody(req => dostuff) style callback

📊 Changes

3 files changed (+39 additions, -0 deletions)

View changed files

📝 src/WireMock.Net/ResponseBuilders/IBodyResponseBuilder.cs (+11 -0)
📝 src/WireMock.Net/ResponseBuilders/Response.cs (+7 -0)
📝 test/WireMock.Net.Tests/FluentMockServerTests.cs (+21 -0)

📄 Description

Adds a small overload for the WithBody method to make callback style mocking even easier.


🔄 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/102 **Author:** [@alastairtree](https://github.com/alastairtree) **Created:** 3/2/2018 **Status:** ✅ Merged **Merged:** 3/3/2018 **Merged by:** [@StefH](https://github.com/StefH) **Base:** `master` ← **Head:** `feat/callback-on-body` --- ### 📝 Commits (1) - [`5117f1d`](https://github.com/wiremock/WireMock.Net/commit/5117f1d6c61e0c26f3a2b2a2ebb8ac1374e807b0) feat: add WithBody(req => dostuff) style callback ### 📊 Changes **3 files changed** (+39 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/WireMock.Net/ResponseBuilders/IBodyResponseBuilder.cs` (+11 -0) 📝 `src/WireMock.Net/ResponseBuilders/Response.cs` (+7 -0) 📝 `test/WireMock.Net.Tests/FluentMockServerTests.cs` (+21 -0) </details> ### 📄 Description Adds a small overload for the WithBody method to make callback style mocking even easier. --- <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 08:33:28 +01:00
adam closed this issue 2025-12-29 08:33:28 +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#767