/// <summary>
        /// Initializes a new instance of the <see cref="MissingOrderChecker" /> class.
        /// </summary>
        public MissingOrderChecker()
        {
            this.orderManager = Ecommerce.Context.Entity.Resolve<MerchantOrderManager>();

              if (System.Web.HttpContext.Current != null)
              {
            this.HttpContext = new HttpContextWrapper(System.Web.HttpContext.Current);
              }
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MissingOrderChecker" /> class.
        /// </summary>
        public MissingOrderChecker()
        {
            this.orderManager = Ecommerce.Context.Entity.Resolve <MerchantOrderManager>();

            if (System.Web.HttpContext.Current != null)
            {
                this.HttpContext = new HttpContextWrapper(System.Web.HttpContext.Current);
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PrintOrderPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="orderRepository">The order repository.</param>
        /// <param name="reportFactory">The report factory.</param>
        public PrintOrderPresenter([NotNull] IPrintOrderView view, [NotNull] MerchantOrderManager orderRepository, [NotNull] StiReportFactory reportFactory)
        {
            Assert.ArgumentNotNull(view, "view");
            Assert.ArgumentNotNull(orderRepository, "orderRepository");
            Assert.ArgumentNotNull(reportFactory, "reportFactory");

            this.view            = view;
            this.orderRepository = orderRepository;
            this.reportFactory   = reportFactory;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="PrintOrderPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="orderRepository">The order repository.</param>
        /// <param name="reportFactory">The report factory.</param>
        public PrintOrderPresenter([NotNull] IPrintOrderView view, [NotNull] MerchantOrderManager orderRepository, [NotNull] StiReportFactory reportFactory)
        {
            Assert.ArgumentNotNull(view, "view");
              Assert.ArgumentNotNull(orderRepository, "orderRepository");
              Assert.ArgumentNotNull(reportFactory, "reportFactory");

              this.view = view;
              this.orderRepository = orderRepository;
              this.reportFactory = reportFactory;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderTaskFlowButtonsPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="merchantOrderManager">The merchant order manager.</param>
        /// <param name="orderSecurity">The order security.</param>
        /// <param name="paymentProviderFactory">The payment provider factory.</param>
        public OrderTaskFlowButtonsPresenter([NotNull] IOrderTaskFlowButtonsView view, [NotNull] MerchantOrderManager merchantOrderManager, [NotNull] MerchantOrderSecurity orderSecurity, PaymentProviderFactory paymentProviderFactory)
        {
            Assert.ArgumentNotNull(view, "view");
            Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
            Assert.ArgumentNotNull(orderSecurity, "orderSecurity");

            this.view = view;
            this.view.SmartPanelClosed += this.SmartPanelClosedHandler;
            this.merchantOrderManager   = merchantOrderManager;
            this.orderSecurity          = orderSecurity;
            this.paymentProviderFactory = paymentProviderFactory;
        }
Beispiel #6
0
        /// <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;
        }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderDetailsDataSource" /> class.
 /// </summary>
 public OrderDetailsDataSource()
 {
     this.merchantOrderManager = Context.Entity.Resolve <MerchantOrderManager>();
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderTaskFlowButtonsPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="merchantOrderManager">The merchant order manager.</param>
        /// <param name="orderSecurity">The order security.</param>
        /// <param name="paymentProviderFactory">The payment provider factory.</param>
        public OrderTaskFlowButtonsPresenter([NotNull] IOrderTaskFlowButtonsView view, [NotNull] MerchantOrderManager merchantOrderManager, [NotNull] MerchantOrderSecurity orderSecurity,  PaymentProviderFactory paymentProviderFactory)
        {
            Assert.ArgumentNotNull(view, "view");
              Assert.ArgumentNotNull(merchantOrderManager, "merchantOrderManager");
              Assert.ArgumentNotNull(orderSecurity, "orderSecurity");

              this.view = view;
              this.view.SmartPanelClosed += this.SmartPanelClosedHandler;
              this.merchantOrderManager = merchantOrderManager;
              this.orderSecurity = orderSecurity;
              this.paymentProviderFactory = paymentProviderFactory;
        }
Beispiel #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TryOpenOrder" /> class.
 /// </summary>
 public TryOpenOrder()
 {
     this.orderManager = Context.Entity.Resolve <MerchantOrderManager>();
 }