public async Task <VerificationResult> PassesWhenPactIsHonoured() { GivenAPact(PublishedPact.ValidRequestHandler); var verificationResult = await pact.Honour(); Assert.True(verificationResult.Success); return(verificationResult); }
public async Task HonourPact() { var result = await pact.Honour(); // In a real world scenario, you'd now publish the verification results to a pact broker or other central repository Assert.True(result.Success, string.Join(Environment.NewLine, result.Results.Select(r => r.FailureReason))); }