Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderStateListPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="order">The order.</param>
        /// <param name="merchantOrderStateConfiguration">The merchant order state configuration.</param>
        /// <param name="orderStateListValidator">The order state list validator.</param>
        public OrderStateListPresenter([NotNull] IOrderStateListView view, [NotNull] Order order, [NotNull] MerchantOrderStateConfiguration merchantOrderStateConfiguration, [NotNull] OrderStateListValidator orderStateListValidator)
        {
            Assert.ArgumentNotNull(view, "view");
            Assert.ArgumentNotNull(order, "order");
            Assert.ArgumentNotNull(merchantOrderStateConfiguration, "merchantOrderStateConfiguration");
            Assert.ArgumentNotNull(orderStateListValidator, "orderStateListValidator");

            this.view  = view;
            this.order = order;
            this.merchantOrderStateConfiguration = merchantOrderStateConfiguration;
            this.orderStateListValidator         = orderStateListValidator;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderStateListPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <param name="order">The order.</param>
        /// <param name="merchantOrderStateConfiguration">The merchant order state configuration.</param>
        /// <param name="orderStateListValidator">The order state list validator.</param>
        public OrderStateListPresenter([NotNull] IOrderStateListView view, [NotNull] Order order, [NotNull] MerchantOrderStateConfiguration merchantOrderStateConfiguration, [NotNull] OrderStateListValidator orderStateListValidator)
        {
            Assert.ArgumentNotNull(view, "view");
              Assert.ArgumentNotNull(order, "order");
              Assert.ArgumentNotNull(merchantOrderStateConfiguration, "merchantOrderStateConfiguration");
              Assert.ArgumentNotNull(orderStateListValidator, "orderStateListValidator");

              this.view = view;
              this.order = order;
              this.merchantOrderStateConfiguration = merchantOrderStateConfiguration;
              this.orderStateListValidator = orderStateListValidator;
        }