public void GetMatchingProductDiscountRequestMessage()
        {
            GetMatchingProductDiscountParameters parameters = new GetMatchingProductDiscountParameters();

            parameters.Price = new Price();
            GetMatchingProductDiscountCommand matchingCommand       = new GetMatchingProductDiscountCommand(parameters);
            GetMatchingRequestMessageBuilder  requestMessageBuilder = new GetMatchingRequestMessageBuilder(
                this.clientFixture.GetService <ISerializerService>(),
                this.clientFixture.GetService <IEndpointRetriever>(),
                this.clientFixture.GetService <IParametersBuilderFactory <IAdditionalParametersBuilder> >());
            HttpRequestMessage httpRequestMessage = requestMessageBuilder.GetRequestMessage(matchingCommand);

            Assert.Equal("product-discounts/matching", httpRequestMessage.RequestUri.ToString());
        }
Пример #2
0
 public GetMatchingHttpApiCommand(GetMatchingCommand <T> command, IRequestMessageBuilderFactory requestMessageBuilderFactory)
 {
     this.command        = command;
     this.requestBuilder = requestMessageBuilderFactory.GetRequestMessageBuilder <GetMatchingRequestMessageBuilder>();
 }