コード例 #1
0
        static void Main()
        {
            var upsShipment = new UPSShipment
            {
                ShippingAddress = "Kadikoy Hede Cad. Hebe Sok. Super Apt. K:55/12 Istanbul/Turkey"
            };

            upsShipment.Ship(Console.Out);


            var fedExShipment = new FedExShipment()
            {
                ShippingAddress = "Kadikoy Hede Cad. Hebe Sok. Super Apt. K:55/12 Istanbul/Turkey"
            };

            fedExShipment.Ship(Console.Out);

            Console.ReadKey();
        }
コード例 #2
0
        public override RedHeadsShipment CreateShipment(RedHeadsAddress from, RedHeadsAddress to)
        {
            UPSShipment upsShipment = _upsLib.CreateShipment(mapRHAddresstoUPS(from), mapRHAddresstoUPS(to));

            return(mapUPSShipmentToRH(upsShipment));
        }