Beispiel #1
0
 public ShoppingCartItemHelper(IShoppingCartHelper shoppingCartHelper, IShoppingCartItemService shoppingCartItemService, IShoppingCartService shoppingCartService, IProductService productService)
 {
     _shoppingCartHelper      = shoppingCartHelper;
     _shoppingCartItemService = shoppingCartItemService;
     _productService          = productService;
     _shoppingCartService     = shoppingCartService;
 }
Beispiel #2
0
 public HomeController(IItemService itemService, IOfferService offerService, IShoppingCartService shoppingCartService, IShoppingCartItemService shoppingCartItemService)
 {
     _itemService             = itemService;
     _offerService            = offerService;
     _shoppingCartService     = shoppingCartService;
     _shoppingCartItemService = shoppingCartItemService;
 }
 public ShoppingCartAppService(IShoppingCartService shoppingCartService,
                               IShoppingCartItemService shoppingCartItemService,
                               IProductService productService)
 {
     _shoppingCartService     = shoppingCartService;
     _shoppingCartItemService = shoppingCartItemService;
     _productService          = productService;
 }
Beispiel #4
0
 public OrderController(
     IOrderService _OrderService,
     IShoppingCartItemService _ShoppingCartItemService
     )
 {
     this.OrderService            = _OrderService;
     this.ShoppingCartItemService = _ShoppingCartItemService;
 }
 public ShoppingCartController(IShoppingCartItemService shoppingCartItemService
                               , IPostService postService, IWorkContext workContext, IGenericAttributeService genericAttributeService,
                               IPaymentMethodService paymentMethodService)
 {
     _shoppingCartItemService = shoppingCartItemService;
     _postService             = postService;
     _workContext             = workContext;
     _genericAttributeService = genericAttributeService;
 }
Beispiel #6
0
 public ShoppingCartAppService(IShoppingCartService shoppingCartService,
                               IShoppingCartItemService shoppingCartItemService,
                               IProductService productService,
                               IUnityOfWork uow)
     : base(uow)
 {
     _shoppingCartService     = shoppingCartService;
     _shoppingCartItemService = shoppingCartItemService;
     _productService          = productService;
 }
Beispiel #7
0
 public AbstractShoppingCartItemController(
     ApiSettings settings,
     ILogger <AbstractShoppingCartItemController> logger,
     ITransactionCoordinator transactionCoordinator,
     IShoppingCartItemService shoppingCartItemService,
     IApiShoppingCartItemModelMapper shoppingCartItemModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.ShoppingCartItemService     = shoppingCartItemService;
     this.ShoppingCartItemModelMapper = shoppingCartItemModelMapper;
 }
Beispiel #8
0
        public void Setup()
        {
            // Resolve autofac dependencies
            _itemService             = Resolve <IItemService>();
            _offerService            = Resolve <IOfferService>();
            _shoppingCartService     = Resolve <IShoppingCartService>();
            _shoppingCartItemService = Resolve <IShoppingCartItemService>();

            // Init Database
            Database.SetInitializer(new CreateDatabase());

            // Configure AutoMapper
            AutoMapperConfiguration.Configure();
        }
Beispiel #9
0
        public void TearDown()
        {
            _itemService             = null;
            _offerService            = null;
            _shoppingCartService     = null;
            _shoppingCartItemService = null;
            ShutdownIoC();

            // Cleanup the database
            using (ShoppingKartContext db = new ShoppingKartContext())
            {
                db.Database.Delete();
            }

            AutoMapperConfiguration.Reset();
        }
 public ShoppingCartItemController(
     ApiSettings settings,
     ILogger <ShoppingCartItemController> logger,
     ITransactionCoordinator transactionCoordinator,
     IShoppingCartItemService shoppingCartItemService,
     IApiShoppingCartItemModelMapper shoppingCartItemModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            shoppingCartItemService,
            shoppingCartItemModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
Beispiel #11
0
 public OrderProcessingService(IOrderService orderService
                               , IShoppingCartItemService shoppingCartItemService
                               , ICustomerService customerService
                               , IGenericAttributeService genericAttributeService
                               , IPriceCalculationService priceCalculationService
                               , IMessageService messageFactory, IPostService postService
                               , IOrderTotalCalculationService orderTotalCalculationService)
 {
     _orderService                 = orderService;
     _shoppingCartItemService      = shoppingCartItemService;
     _customerService              = customerService;
     _genericAttributeService      = genericAttributeService;
     _priceCalculationService      = priceCalculationService;
     _messageFactory               = messageFactory;
     _postService                  = postService;
     _orderTotalCalculationService = orderTotalCalculationService;
 }
Beispiel #12
0
 public CheckoutController(IWorkContext workContext, ICustomerService customerService,
                           IAddressService addressService, IPostService postService
                           , IShoppingCartItemService shoppingCartItemService
                           , IPaymentMethodService paymentMethodService
                           , IGenericAttributeService genericAttributeService
                           , IShippingMethodService shippingMethodService
                           , IOrderService orderService
                           , IOrderProcessingService orderProcessingService)
 {
     _workContext             = workContext;
     _customerService         = customerService;
     _addressService          = addressService;
     _postService             = postService;
     _shoppingCartItemService = shoppingCartItemService;
     _paymentMethodService    = paymentMethodService;
     _genericAttributeService = genericAttributeService;
     _shippingMethodService   = shippingMethodService;
     _orderService            = orderService;
     _orderProcessingService  = orderProcessingService;
 }
 public ShoppingCartItemController(IShoppingCartItemService service, ILogger <ShoppingCartItemController> logger)
 {
     _service = service;
     _logger  = logger;
 }
Beispiel #14
0
 public ShoppingCartItemController(
     IShoppingCartItemService _ShoppingCartItemService
     )
 {
     this.ShoppingCartItemService = _ShoppingCartItemService;
 }
Beispiel #15
0
 public ShoppingCartItemAppService(IShoppingCartItemService shoppingCartItemService)
 {
     _shoppingCartItemService = shoppingCartItemService;
 }
 public ShoppingCartItemAppService(IShoppingCartItemService shoppingCartItemService,
                                   IUnityOfWork uow)
     : base(uow)
 {
     _shoppingCartItemService = shoppingCartItemService;
 }
 public ShoppingCartItemsController(IShoppingCartItemService shoppingCartItemService)
 {
     _shoppingCartItemService = shoppingCartItemService;
 }
Beispiel #18
0
 public ShoppingCartItemController(IShoppingCartItemService shoppingCartItemService, IProductService productService)
 {
     _shoppingCartItemService = shoppingCartItemService;
     _productService          = productService;
 }