/// <summary>
    /// Initializes a new instance of the <see cref="CancelReservationProcessingStrategy" /> class.
    /// </summary>
    /// <param name="merchantOrderManager">The merchant order manager.</param>
    /// <param name="paymentProviderFactory">The payment provider factory.</param>
    public CancelReservationProcessingStrategy(MerchantOrderManager merchantOrderManager, PaymentProviderFactory paymentProviderFactory)
    {
      Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
      Assert.ArgumentNotNull(paymentProviderFactory, "paymentProviderFactory");

      this.merchantOrderManager = merchantOrderManager;
      this.paymentProviderFactory = paymentProviderFactory;
    }
    /// <summary>
    /// Initializes a new instance of the <see cref="RemoveOrderLineProcessingStrategy" /> class.
    /// </summary>
    /// <param name="merchantOrderManager">The merchant order manager.</param>
    /// <param name="productStockManager">The product stock manager.</param>
    /// <param name="calculationStrategy">The calculation strategy.</param>
    public RemoveOrderLineProcessingStrategy(MerchantOrderManager merchantOrderManager, IProductStockManager productStockManager, IOrderCalculationStrategy calculationStrategy)
    {
      Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
      Assert.ArgumentNotNull(productStockManager, "productStockManager");
      Assert.ArgumentNotNull(calculationStrategy, "calculationStrategy");

      this.merchantOrderManager = merchantOrderManager;
      this.productStockManager = productStockManager;
      this.calculationStrategy = calculationStrategy;
    }
    /// <summary>
    /// Initializes a new instance of the <see cref="AddNewOrderLineProcessingStrategy" /> class.
    /// </summary>
    /// <param name="merchantOrderManager">The order manager.</param>
    /// <param name="orderLineFactory">The order line factory.</param>
    /// <param name="productStockManager">The product stock manager.</param>
    public AddNewOrderLineProcessingStrategy(MerchantOrderManager merchantOrderManager, OrderLineFactory orderLineFactory, IProductStockManager productStockManager)
    {
      Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
      Assert.ArgumentNotNull(orderLineFactory, "orderLineFactory");
      Assert.ArgumentNotNull(productStockManager, "productStockManager");

      this.merchantOrderManager = merchantOrderManager;
      this.orderLineFactory = orderLineFactory;
      this.productStockManager = productStockManager;
    }
        /// <summary>
        /// Initializes a new instance of the <see cref="RemoveOrderLineProcessingStrategy" /> class.
        /// </summary>
        /// <param name="merchantOrderManager">The merchant order manager.</param>
        /// <param name="productStockManager">The product stock manager.</param>
        /// <param name="calculationStrategy">The calculation strategy.</param>
        public RemoveOrderLineProcessingStrategy(MerchantOrderManager merchantOrderManager, IProductStockManager productStockManager, IOrderCalculationStrategy calculationStrategy)
        {
            Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
            Assert.ArgumentNotNull(productStockManager, "productStockManager");
            Assert.ArgumentNotNull(calculationStrategy, "calculationStrategy");

            this.merchantOrderManager = merchantOrderManager;
            this.productStockManager  = productStockManager;
            this.calculationStrategy  = calculationStrategy;
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EditOrderLineProcessingStrategy" /> class.
        /// </summary>
        /// <param name="merchantOrderManager">The merchant order manager.</param>
        /// <param name="orderLineFactory">The order line factory.</param>
        /// <param name="productStockManager">The product stock manager.</param>
        public EditOrderLineProcessingStrategy(MerchantOrderManager merchantOrderManager, OrderLineFactory orderLineFactory, IProductStockManager productStockManager)
        {
            Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
            Assert.ArgumentNotNull(orderLineFactory, "orderLineFactory");
            Assert.ArgumentNotNull(productStockManager, "productStockManager");

            this.merchantOrderManager = merchantOrderManager;
            this.orderLineFactory     = orderLineFactory;
            this.productStockManager  = productStockManager;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CreateOrderActionPresenter" /> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="orderSecurity">The merchant order security.</param>
        /// <param name="orderFactory">The order factory.</param>
        /// <param name="orderManager">The order manager.</param>
        /// <param name="stateConfiguration">The state configuration.</param>
        public CreateOrderActionPresenter([NotNull] ICreateOrderActionView view, [NotNull] MerchantOrderSecurity orderSecurity, [NotNull] IOrderFactory orderFactory, [NotNull] MerchantOrderManager orderManager, [NotNull] MerchantOrderStateConfiguration stateConfiguration)
        {
            Assert.ArgumentNotNull(view, "view");
              Assert.ArgumentNotNull(orderSecurity, "orderSecurity");
              Assert.ArgumentNotNull(orderFactory, "orderFactory");
              Assert.ArgumentNotNull(orderManager, "orderManager");
              Assert.ArgumentNotNull(stateConfiguration, "stateConfiguration");

              this.view = view;
              this.orderSecurity = orderSecurity;
              this.orderFactory = orderFactory;
              this.orderManager = orderManager;
              this.stateConfiguration = stateConfiguration;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderDetailsDataSource" /> class.
 /// </summary>
 public OrderDetailsDataSource()
 {
     this.merchantOrderManager = Context.Entity.Resolve<MerchantOrderManager>();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeOrderLineQuantityProcessingStrategy" /> class.
 /// </summary>
 /// <param name="merchantOrderManager">The merchant order manager.</param>
 /// <param name="orderLineFactory">The order line factory.</param>
 /// <param name="productStockManager">The product stock manager.</param>
 public ChangeOrderLineQuantityProcessingStrategy(MerchantOrderManager merchantOrderManager, OrderLineFactory orderLineFactory, IProductStockManager productStockManager)
     : base(merchantOrderManager, orderLineFactory, productStockManager)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ChangeOrderLineQuantityProcessingStrategy" /> class.
 /// </summary>
 /// <param name="merchantOrderManager">The merchant order manager.</param>
 /// <param name="orderLineFactory">The order line factory.</param>
 /// <param name="productStockManager">The product stock manager.</param>
 public ChangeOrderLineQuantityProcessingStrategy(MerchantOrderManager merchantOrderManager, OrderLineFactory orderLineFactory, IProductStockManager productStockManager)
   : base(merchantOrderManager, orderLineFactory, productStockManager)
 {
 }