コード例 #1
0
        /// <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;
        }
コード例 #2
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;
        }
コード例 #3
0
        /// <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;
        }