Ejemplo n.º 1
0
        /// <summary>
        /// Generates the shipment.
        /// </summary>
        /// <returns>A new ProcessOrdersShipment.</returns>
        private static ProcessOrdersShipment GenerateShipment()
        {
            ProcessOrdersShipment shipment = new ProcessOrdersShipment();

            shipment.OrderId = 12345;
            shipment.DateExpectedDelivery = new DateTime(2015, 02, 07);
            shipment.DateTime             = new DateTime(2014, 4, 7, 17, 58, 13);
            ProcessOrdersShipmentTransporter transporter = new ProcessOrdersShipmentTransporter();

            transporter.Code = "TNT";
            transporter.TrackAndTraceCode = "12345";
            shipment.Transporter          = transporter;
            shipment.OrderItems           = new long[] { 998877, 778899 };

            return(shipment);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Generates the shipment.
        /// </summary>
        /// <returns>A new ProcessOrdersShipment.</returns>
        private static ProcessOrdersShipment GenerateShipment()
        {
            ProcessOrdersShipment shipment = new ProcessOrdersShipment();
            shipment.OrderId = 12345;
            shipment.DateExpectedDelivery = new DateTime(2015, 02, 07);
            shipment.DateTime = new DateTime(2014, 4, 7, 17, 58, 13);
            ProcessOrdersShipmentTransporter transporter = new ProcessOrdersShipmentTransporter();
            transporter.Code = "TNT";
            transporter.TrackAndTraceCode = "12345";
            shipment.Transporter = transporter;
            shipment.OrderItems = new long[] { 998877, 778899 };

            return shipment;
        }