.NET version of Pact. Enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project.
Ideally, this is pretty printed and logged to console (or whatever logging framework is configured). For example, in Pact JS it would be something like this:
Mock server failed with the following mismatches:
0) The following request was incorrect:
POST /test
1.0 $: Failed to parse the expected body as a MIME multipart body: 'no boundary in content-type'
When there is a request mismatch in a consumer test, the error message is hidden away in the logs or in the response to the failing API test:
Ideally, this is pretty printed and logged to console (or whatever logging framework is configured). For example, in Pact JS it would be something like this: