Exemple #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderStatusCommandBuilder"/> class.
        /// </summary>
        /// <param name="order">The order.</param>
        /// <param name="command">The command.</param>
        public OrderStatusCommandBuilder(Order order, OrderStatusCommand command) : base("ordercatalog:changeorderstatus")
        {
            Assert.ArgumentNotNull(order, "order");
            Assert.ArgumentNotNull(command, "command");

            this.Add("orderNumber", order.OrderNumber);
            this.Add("statusCode", command.OrderStatusCode);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="OrderStatusCommandBuilder"/> class.
        /// </summary>
        /// <param name="order">The order.</param>
        /// <param name="command">The command.</param>
        public OrderStatusCommandBuilder(Order order, OrderStatusCommand command)
            : base("ordercatalog:changeorderstatus")
        {
            Assert.ArgumentNotNull(order, "order");
              Assert.ArgumentNotNull(command, "command");

              this.Add("orderNumber", order.OrderNumber);
              this.Add("statusCode", command.OrderStatusCode);
        }