Rename (WireMock.Pact.Models.V2)-Request to PactRequest and -Response to PactResponse (#767)

This commit is contained in:
Stef Heyenrath
2022-07-08 10:32:12 +02:00
committed by GitHub
parent ef12cb70cc
commit 4d0f96eabe
4 changed files with 14 additions and 15 deletions

View File

@@ -53,9 +53,9 @@ internal static class PactMapper
return (filename, JsonUtils.SerializeAsPactFile(pact));
}
private static Request MapRequest(RequestModel request, string path)
private static PactRequest MapRequest(RequestModel request, string path)
{
return new Request
return new PactRequest
{
Method = request.Methods?.FirstOrDefault() ?? DefaultMethod,
Path = path,
@@ -65,14 +65,14 @@ internal static class PactMapper
};
}
private static Response MapResponse(ResponseModel? response)
private static PactResponse MapResponse(ResponseModel? response)
{
if (response == null)
{
return new Response();
return new PactResponse();
}
return new Response
return new PactResponse
{
Status = MapStatusCode(response.StatusCode),
Headers = MapResponseHeaders(response.Headers),