Ejemplo n.º 1
0
 public FulfillmentClient(HttpMessageHandler httpMessageHandler, FulfillmentClientConfiguration configuration, ILogger <FulfillmentClient> logger)
 {
     this.baseUri            = configuration.BaseUri;
     this.apiVersion         = configuration.ApiVersion;
     this.logger             = logger;
     this.httpMessageHandler = httpMessageHandler;
 }
Ejemplo n.º 2
0
        public MockApiTests()
        {
            this.loggerMock = new Mock <ILogger <FulfillmentClient> >();
            var configuration = new FulfillmentClientConfiguration {
                BaseUri = MockUri, ApiVersion = MockApiVersion
            };

            this.client = new FulfillmentClient(configuration, this.loggerMock.Object);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 public FulfillmentClient(FulfillmentClientConfiguration configuration, ILogger <FulfillmentClient> logger) : this(null, configuration, logger)
 {
 }