I recently heard about Pact and PactNet and it looks promising for testing micro services. Unfortunately, all of the documentation I can find as of today (11 Sept 2023) is painfully outdated and use libraries, properties, etc that are no longer apart of PactNet. Even the github "example" provided by Pact.io for PactNet is no longer valid (https://github.com/pact-foundation/pact-net). Is PactNet dying on the vine?
It appears that other languages may have better coverage and support but I am hoping we may be able to leverage PactNet for our .net code.
I have been able to generate a consumer pact but I have no idea how to implement the provider side. Can anyone point me to current/valid documentation for using Pact with .NET Core 6+? Or...does anyone have a code example?
One final question...if PactNet is not a viable solution, does anyone have any info on other contract testing frameworks that would work for .NET as well as React?
Thank you!
The example in here uses dotnet 6: https://github.com/pact-foundation/pact-net/tree/master/samples/OrdersApi/Provider.Tests
Pact .NET is alive and well. It has gone through a significant re-write in the past year or so, hence why many examples still use the previous major version.
Can you please share the example you are referring to for clarity (best to just update your question)?