diff --git a/CHANGELOG.md b/CHANGELOG.md index 47ffa489..866c36f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 1.0.4.1 (25 June 2018) + + - [#153](https://github.com/WireMock-Net/WireMock.Net/issues/153) - Feature: Add JsonMatcher to support Json mapping + +Commits: f61a814ab5...2eff243a96 + + # 1.0.4.0 (23 June 2018) - [#151](https://github.com/WireMock-Net/WireMock.Net/issues/151) - Feature: Add logging of incoming request and body for tracability diff --git a/examples/WireMock.Net.ConsoleApplication/MainApp.cs b/examples/WireMock.Net.ConsoleApplication/MainApp.cs index 018ec483..206ae130 100644 --- a/examples/WireMock.Net.ConsoleApplication/MainApp.cs +++ b/examples/WireMock.Net.ConsoleApplication/MainApp.cs @@ -38,6 +38,13 @@ namespace WireMock.Net.ConsoleApplication server.AllowPartialMapping(); + server + .Given(Request.Create() + .WithPath("/xpath").UsingPost() + .WithBody(new XPathMatcher("/todo-list[count(todo-item) = 3]")) + ) + .RespondWith(Response.Create().WithBody("XPathMatcher!")); + server .Given(Request .Create()