Open StefH opened 1 year ago
Thank you for the suggestion, Stef. At first glance it shouldn’t be too hard to do, so I’ll add it to the list.
The only thing which differs is that WireMock.Net does not have any static new
helper methods / fluent helper methods yet.
So in Hamcrest you can do:
...
.Body(NHamcrest.Is.EqualTo("California"));
For now the equivalent using WireMock is:
...
.Body(new ExactMatcher("California"));
A possible fluent interface for WireMock could be:
...
.Body(WireMockMatcher.Is.EqualTo("California"));
Hi Bas, just a remark...
Instead of using NHamcrest to do the matching, you could also use the WireMock.Net matchers: https://github.com/WireMock-Net/WireMock.Net/tree/master/src/WireMock.Net/Matchers