예제 #1
0
        private static OrderHasBeenShippedMessage CreateInitechOrderHasBeenShippedMessageWithThreeLines()
        {
            var order = new OrderHasBeenShippedMessage
            {
                BOL                   = "00999998",
                CustomerPO            = "AFC000001",
                BusinessPartnerCode   = BusinessPartner.Initech.Code,
                BusinessPartnerNumber = BusinessPartner.Initech.Number,
                ControlNumber         = "50001"
            };

            order.Add(new ShippedLine
            {
                CustomerPartNo = "910021",
                DateShipped    = SystemTime.Now(),
                ItemID         = "910021",
                LineNumber     = "1",
                QtyOrdered     = 1,
                QtyShipped     = 1,
                UOM            = "EA"
            });
            order.Add(new ShippedLine
            {
                CustomerPartNo = "910022",
                DateShipped    = SystemTime.Now(),
                ItemID         = "910022",
                LineNumber     = "2",
                QtyOrdered     = 2,
                QtyShipped     = 2,
                UOM            = "EA"
            });
            order.AddAddress(new Address
            {
                AddressType = AddressTypeConstants.ShipFrom,
                Address1    = "2343 Grimes",
                City        = "Austin",
                State       = "TX",
                Zip         = "78987",
                AddressName = "Austin Foam Plastics"
            });
            order.AddAddress(new Address
            {
                AddressType = AddressTypeConstants.ShipTo,
                Address1    = " 590 BROADWAY",
                City        = "MENANDS",
                State       = "NY",
                Zip         = "12204",
                AddressName = "FEDERAL EXPRESS"
            });
            order.Lines.Where(l => l.LineNumber == "1").First().TrackingNumbers.Add("99999994");
            order.Lines.Where(l => l.LineNumber == "2").First().TrackingNumbers.Add("99999995");
            order.Lines.Where(l => l.LineNumber == "2").First().TrackingNumbers.Add("99999996");
            return(order);
        }
예제 #2
0
        private OrderHasBeenShippedMessage GetOrder()
        {
            var order = new OrderHasBeenShippedMessage
            {
                BOL                   = "0005456",
                CustomerPO            = "SRC009670",
                BusinessPartnerCode   = BusinessPartner.MicroCenter.Code,
                BusinessPartnerNumber = BusinessPartner.MicroCenter.Number,
                ControlNumber         = "60001"
            };

            order.Add(new ShippedLine
            {
                CustomerPartNo = "900104",
                DateShipped    = SystemTime.Now(),
                ItemID         = "FIN23430I044",
                LineNumber     = "1",
                QtyOrdered     = 3,
                QtyShipped     = 3,
                UOM            = "EA"
            });
            order.AddAddress(new Address
            {
                AddressType = AddressTypeConstants.ShipFrom,
                Address1    = "2343 Grimes",
                City        = "Austin",
                State       = "TX",
                Zip         = "78987",
                AddressName = "Austin Foam Plastics"
            });
            order.AddAddress(new Address
            {
                AddressType = AddressTypeConstants.ShipTo,
                Address1    = "90 FEDEX PARKWAY",
                City        = "COLLIERVILLE",
                State       = "TN",
                Zip         = "38017",
                AddressName = "FEDEX SUSIE CARNEY"
            });
            order.Lines.First().TrackingNumbers.Add("33532343");
            order.Lines.First().TrackingNumbers.Add("33577773");
            order.Lines.First().TrackingNumbers.Add("33577776");
            return(order);
        }
 private static OrderHasBeenShippedMessage CreateInitechOrderHasBeenShippedMessageWithThreeLines()
 {
     var order = new OrderHasBeenShippedMessage
     {
         BOL = "00999998",
         CustomerPO = "AFC000001",
         BusinessPartnerCode = BusinessPartner.Initech.Code,
         BusinessPartnerNumber = BusinessPartner.Initech.Number,
         ControlNumber = "50001"
     };
     order.Add(new ShippedLine
     {
         CustomerPartNo = "910021",
         DateShipped = SystemTime.Now(),
         ItemID = "910021",
         LineNumber = "1",
         QtyOrdered = 1,
         QtyShipped = 1,
         UOM = "EA"
     });
     order.Add(new ShippedLine
     {
         CustomerPartNo = "910022",
         DateShipped = SystemTime.Now(),
         ItemID = "910022",
         LineNumber = "2",
         QtyOrdered = 2,
         QtyShipped = 2,
         UOM = "EA"
     });
     order.AddAddress(new Address
     {
         AddressType = AddressTypeConstants.ShipFrom,
         Address1 = "2343 Grimes",
         City = "Austin",
         State = "TX",
         Zip = "78987",
         AddressName = "Austin Foam Plastics"
     });
     order.AddAddress(new Address
     {
         AddressType = AddressTypeConstants.ShipTo,
         Address1 = " 590 BROADWAY",
         City = "MENANDS",
         State = "NY",
         Zip = "12204",
         AddressName = "FEDERAL EXPRESS"
     });
     order.Lines.Where(l => l.LineNumber == "1").First().TrackingNumbers.Add("99999994");
     order.Lines.Where(l => l.LineNumber == "2").First().TrackingNumbers.Add("99999995");
     order.Lines.Where(l => l.LineNumber == "2").First().TrackingNumbers.Add("99999996");
     return order;
 }
 private static OrderHasBeenShippedMessage CreateInitechOrderHasBeenShippedMessageWithTwoLines()
 {
     var order = new OrderHasBeenShippedMessage
     {
         BOL = "0005456",
         CustomerPO = "SRC009670",
         BusinessPartnerCode = BusinessPartner.Initech.Code,
         BusinessPartnerNumber = BusinessPartner.Initech.Number,
         ControlNumber = "60001"
     };
     order.Add(new ShippedLine
     {
         CustomerPartNo = "900104",
         DateShipped = SystemTime.Now(),
         ItemID = "FIN23430I044",
         LineNumber = "1",
         QtyOrdered = 3,
         QtyShipped = 3,
         UOM = "EA"
     });
     order.AddAddress(new Address
     {
         AddressType = AddressTypeConstants.ShipFrom,
         Address1 = "2343 Grimes",
         City = "Austin",
         State = "TX",
         Zip = "78987",
         AddressName = "Austin Foam Plastics"
     });
     order.AddAddress(new Address
     {
         AddressType = AddressTypeConstants.ShipTo,
         Address1 = "90 Initech PARKWAY",
         City = "COLLIERVILLE",
         State = "TN",
         Zip = "38017",
         AddressName = "Initech SUSIE CARNEY"
     });
     order.Lines.First().TrackingNumbers.Add("33532343");
     order.Lines.First().TrackingNumbers.Add("33577773");
     return order;
 }