public void OneTimeSetUp() { _pactBuilder = new PactBuilder(new PactConfig { SpecificationVersion = "2.0.0" }); _pactBuilder.ServiceConsumer("Consumer App").HasPactWith("Provider API"); _mockProviderService = _pactBuilder.MockService(MockServerPort); }
public void OneTimeSetUp() { _pactBuilder = new PactBuilder(new PactConfig { PactDir = @"c:\temp\pact\pactDir", LogDir = @"c:\temp\pact\logs" }); _pactBuilder .ServiceConsumer(nameof(PactConsumer)) .HasPactWith("PactProducer"); _mockProviderService = _pactBuilder.MockService(MockServerPort); _mockProviderService.ClearInteractions(); }
public APIPact() { _pactBuilder = new PactBuilder(new PactConfig { PactDir = @"..\..\..\..\pacts", LogDir = @"..\..\..\..\logs" }); _pactBuilder.ServiceConsumer("Consumer").HasPactWith("API"); MockProviderService = _pactBuilder.MockService(MockServerPort); }
public void FixtureSetup() { var pactConfig = new PactConfig { PactDir = $"{ PactConstants.PactRootLocation}\\{PactConstants.PactProviderNames.SqsPocApi}\\{PactConstants.PactConsumerNames.Product}", LogDir = $"{ PactConstants.PactRootLocation }\\logs" }; _pactBuilder = new PactBuilder(pactConfig); _pactBuilder .ServiceConsumer(PactConstants.PactConsumerNames.Product) .HasPactWith(PactConstants.PactProviderNames.SqsPocApi); _mockProviderService = _pactBuilder.MockService( MockSqsApiPort, Constants.JsonSettings); }