public OrderService( IDeletableEntityRepository <Order> orderRepository, IUserService userService, IShoppingCartProductsService shoppingCartProductsService, IOrderProductsService orderProductsService, IPromoCodeService promoCodeService) { this.orderRepository = orderRepository; this.userService = userService; this.shoppingCartProductsService = shoppingCartProductsService; this.orderProductsService = orderProductsService; this.promoCodeService = promoCodeService; }
public OrderProductsServiceTests(Configuration configuration) { this.InitializeMapper(); this.InitializeDatabaseAndRepositories(); this.InitializeFields(); this.shoppingCartsService = new ShoppingCartsService( this.usersRepository, this.productsRepository, this.shoppingCartProductsRepository, this.shoppingCartsRepository); this.emailSender = new SendGridEmailSender(configuration.ConfigurationRoot["SendGrid:ApiKey"]); this.orderProductsService = new OrderProductsService( this.orderProductsRepository, this.usersRepository, this.productsRepository, this.shoppingCartsService, this.emailSender); }
public OrderProductsController(IOrderProductsService orderProductsService, IShoppingCartsService shoppingCartsService) { this.orderProductsService = orderProductsService; this.shoppingCartsService = shoppingCartsService; }
public PopularProductsComponent(IOrderProductsService orderProductsService) { this.orderProductsService = orderProductsService; }