Cyrus Devnomad
03/16/2022, 11:47 AM.WithRequest(HttpMethod.Delete, "/api/products/13")
But if I change the path to include the parameter name as follows, the request fails:
.WithRequest(HttpMethod.Delete, "/api/products?id=13")
In this case the HttpClient.DelectAsnyc() method returns the following error:
{StatusCode: 500, ReasonPhrase: 'Internal Server Error', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
Access-Control-Allow-Origin: *
x-pact: Unexpected-Request
Date: Wed, 16 Mar 2022 11:23:47 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 329
}}
Does Pact.NET mock provider not support named parameters in the request query?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Cyrus Devnomad
03/17/2022, 8:30 AM