Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public OrderProductsController(IOrderProductsService orderProductsService, IShoppingCartsService shoppingCartsService)
 {
     this.orderProductsService = orderProductsService;
     this.shoppingCartsService = shoppingCartsService;
 }
Ejemplo n.º 4
0
 public PopularProductsComponent(IOrderProductsService orderProductsService)
 {
     this.orderProductsService = orderProductsService;
 }