I’m not a .NET person, but do you need to explictl...
# pact-net
m
I’m not a .NET person, but do you need to explictly serialise the JSON there? I think you can pass the object directly into
WithJsonBody
c
Thank you very much, indeed passing the actual object instead of the serialized object did i! Now the mock provider accepts and verifies the parameter in the request body:
Copy code
var productNameObj = new { productName = "ProductX" };
...
.WithJsonBody(productNameObj)
🙌 1