snatch-dev / Pactify

Contract testing tool for .NET Core.
MIT License
52 stars 10 forks source link

Request issues and verification isses #20

Open DanielNewmanUK opened 2 years ago

DanielNewmanUK commented 2 years ago

Hello,

I've modified your code to support a few additional requirements (custom headers and extended the request with a body), plus fixed a few bugs within the verify header and verify body methods.

However, I am unable to push from my account to your branch. I am attaching the files directly to this issue, and you can use them if you wish.

Thanks

Daniel Newman Pactify.zip

DanielNewmanUK commented 2 years ago

Can you also add this to the VerifyBody method within the InteractionVerifier:

options = options ?? new PactDefinitionOptions();

As not all requests have options, and this prevents the code from breaking.

Thanks