Yonatan yas
06/11/2023, 7:37 AMTimothy Jones
06/11/2023, 8:51 AMTimothy Jones
06/11/2023, 8:51 AMYonatan yas
06/11/2023, 1:18 PMTimothy Jones
06/11/2023, 1:22 PMTimothy Jones
06/11/2023, 1:22 PMverifier.ServiceProvider("My Provider", this.fixture.ServerUri)
.WithPactBrokerSource(new Uri("<https://broker.example.org>"), options =>
{
options.ConsumerVersionSelectors(new ConsumerVersionSelector { MainBranch = true, Latest = true })
.PublishResults(version, results =>
{
results.ProviderBranch(branch)
.BuildUri(new Uri(buildUri));
});
})
.WithProviderStateUrl(new Uri(this.fixture.ServerUri, "/provider-states"))
.Verify();
Timothy Jones
06/11/2023, 1:23 PM.PublishResults
is the equivalent of publishVerificationResult
. But I donât know for sure - I donât know .NETYonatan yas
06/11/2023, 1:25 PMYonatan yas
06/11/2023, 1:25 PMvar messagePact = GetPactBuilder(contractName, provider, pactDir);
var messageBuilderV3 = messagePact.ExpectsToReceive(description).Given(providerState);
var configuredMessageVerifier = messageBuilderV3.WithJsonContent(data);
await configuredMessageVerifier.VerifyAsync<object>(entityMessageHandler);
Slackbot
06/11/2023, 1:25 PMTimothy Jones
06/11/2023, 1:29 PMTimothy Jones
06/11/2023, 1:30 PMVerifyAsync
name - that verify isnât the provider verificationYonatan yas
06/11/2023, 1:30 PMTimothy Jones
06/11/2023, 1:30 PMTimothy Jones
06/11/2023, 1:31 PMTimothy Jones
06/11/2023, 1:31 PMMatt (pactflow.io / pact-js / pact-go)
I think you might be confused by theYes, I think thatâs the .NET âAsyncâ feature (hence why in the example itâs `await`ed, nothing to do with Pactâs event driven model (unfortunate naming, but I can understand why)name - that verify isnât the provider verificationVerifyAsync
Matt (pactflow.io / pact-js / pact-go)
Yonatan yas
06/13/2023, 7:27 AMTimothy Jones
06/13/2023, 7:35 AMTimothy Jones
06/13/2023, 7:35 AM