Ejemplo n.º 1
0
        public RecommendedSortServiceTest()
        {
            _shopperHistoryService = Substitute.For <IShopperHistoryService>();
            _productsService       = Substitute.For <IProductsService>();
            _productSortService    = new RecommendedSortService(_productsService, _shopperHistoryService);

            this.SetUp();
        }
Ejemplo n.º 2
0
 public ProductService(
     AppSettings appSettings,
     ILogger <ProductService> logger,
     IShopperHistoryService shopperHistoryService)
 {
     _appSettings           = appSettings;
     _logger                = logger;
     _shopperHistoryService = shopperHistoryService;
 }
Ejemplo n.º 3
0
 public ProductService(IShopperHistoryService shopperHistoryService, IOptions <ConnectionSettings> connectionSettings, IHttpClientWrapper httpClientWrapper)
 {
     _shopperHistoryService = shopperHistoryService;
     _httpClientWrapper     = httpClientWrapper;
     _connectionSettings    = connectionSettings.Value;
 }
Ejemplo n.º 4
0
 public PopularityHigh2LowSorter(IShopperHistoryService shopperHistoryService)
 {
     this.shopperHistoryService = shopperHistoryService;
 }
Ejemplo n.º 5
0
 public ProductController(IProductService productService, IShopperHistoryService shopperHistoryService)
 {
     this.productService        = productService;
     this.shopperHistoryService = shopperHistoryService;
 }
 public RecommendedSortService(IProductsService productsService,
                               IShopperHistoryService shopperHistoryService)
 {
     _shopperHistoryService = shopperHistoryService;
     _productsService       = productsService;
 }
Ejemplo n.º 7
0
 public ProductService(HttpClient httpClient, IUserService userService, IShopperHistoryService shopperHistoryService, IOptions <AppSettings> appSettings) : base(httpClient, userService, appSettings)
 {
     _shopperHistoryService = shopperHistoryService;
     RequestUri             = "products";
 }
Ejemplo n.º 8
0
 public ProductsService(HttpClient client, IShopperHistoryService shopperHistoryService)
 {
     _client = client;
     _shopperHistoryService = shopperHistoryService;
 }
 public RecommendedProductsService(IShopperHistoryService shopperHistoryService)
 {
     this.shopperHistoryService = shopperHistoryService ?? throw new System.ArgumentNullException(nameof(shopperHistoryService));
 }
Ejemplo n.º 10
0
 public ProductSorterFactory(IShopperHistoryService shopperHistoryService)
 {
     _shopperHistoryService = shopperHistoryService;
 }
Ejemplo n.º 11
0
 public RecommendedSorter(IShopperHistoryService shopperHistoryService)
 {
     _shopperHistoryService = shopperHistoryService;
 }
 public ProductSorterByPopularity(IShopperHistoryService shopperHistoryService, SortOrder sortOrder = SortOrder.Ascending)
 {
     _shopperHistoryService = shopperHistoryService;
     SortOrder = sortOrder;
 }