mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
[PR #102] [MERGED] Feature: add WithBody(req => dostuff) style callback #767
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?
📋 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:
master← Head:feat/callback-on-body📝 Commits (1)
5117f1dfeat: 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.