Пример #1
0
 public HttpTransport(HttpClient httpClient, IPayloadFormat payloadFormat, ITransportMatchers matchers = null)
 {
     Format             = new HttpTransportFormat(payloadFormat);
     Matchers           = matchers ?? new HttpTransportMatchers();
     this.httpClient    = httpClient;
     this.payloadFormat = payloadFormat;
 }
Пример #2
0
 public HttpMockServer(Pact pact, IPayloadFormat payloadFormat)
     : this(pact, payloadFormat, new PactV2CompliantHttpTransportMatchers())
 {
 }
Пример #3
0
 public HttpMockServer(Pact pact, IPayloadFormat payloadFormat, ITransportMatchers transportMatchers)
 {
     this.pact              = pact;
     this.payloadFormat     = payloadFormat;
     this.transportMatchers = transportMatchers;
 }
Пример #4
0
 public NoTransportFormat(IPayloadFormat payloadFormat)
 {
     this.payloadFormat = payloadFormat;
 }