コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlaceOrder"/> class.
        /// </summary>
        /// <param name="customerOperations">A customer operations used to place the order.</param>
        /// <param name="orderToPlace">A preconfigured order to place with Partner Center.</param>
        public PlaceOrder(ICustomer customerOperations, Order orderToPlace)
        {
            customerOperations.AssertNotNull(nameof(customerOperations));
            orderToPlace.AssertNotNull(nameof(orderToPlace));

            Customer = customerOperations;
            Order    = orderToPlace;
        }