public FulfillmentClient(HttpMessageHandler httpMessageHandler, FulfillmentClientConfiguration configuration, ILogger <FulfillmentClient> logger) { this.baseUri = configuration.BaseUri; this.apiVersion = configuration.ApiVersion; this.logger = logger; this.httpMessageHandler = httpMessageHandler; }
public MockApiTests() { this.loggerMock = new Mock <ILogger <FulfillmentClient> >(); var configuration = new FulfillmentClientConfiguration { BaseUri = MockUri, ApiVersion = MockApiVersion }; this.client = new FulfillmentClient(configuration, this.loggerMock.Object); }
public ClientTests() { this.mockHttpMessageHandler = new Mock <HttpMessageHandler>(); this.loggerMock = new Mock <ILogger <FulfillmentClient> >(); var configuration = new FulfillmentClientConfiguration { BaseUri = MockUri, ApiVersion = MockApiVersion }; this.client = new FulfillmentClient(this.mockHttpMessageHandler.Object, configuration, this.loggerMock.Object); }
public FulfillmentClient(FulfillmentClientConfiguration configuration, ILogger <FulfillmentClient> logger) : this(null, configuration, logger) { }