Exemplo n.º 1
0
        public void TestCreateFromInstance() {
            Order order = new Order() {
                to_address = Address.Create(toAddress),
                from_address = Address.Create(fromAddress),
                reference = "OrderRef",
                shipments = shipments.Select(shipment => Shipment.Create(shipment)).ToList()
            };

            order.Create();

            Assert.IsNotNull(order.id);
            Assert.AreEqual(order.reference, "OrderRef");
        }
Exemplo n.º 2
0
 public void TestCreateOrderWithId() {
     Order order = new Order() { id = "order_asjhd" };
     order.Create();
 }