public void SetUp() { _mockedProductPopularityService = new Mock <IPopularProductService>(); _target = new ProductOrderingService(_mockedProductPopularityService.Object); var productA = new Product() { Name = productAName, Price = 3, Quantity = 0 }; var productB = new Product() { Name = productBName, Price = 1, Quantity = 0 }; var productC = new Product() { Name = productCName, Price = 5, Quantity = 0 }; _products = new List <Product>() { productA, productB, productC }; }
public GetProductsQueryHandler(IResourceApi resourceApi, IProductOrderingService productOrderingService) { _resourceApi = resourceApi; _productOrderingService = productOrderingService; }