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"); }
public void TestCreateOrderWithId() { Order order = new Order() { id = "order_asjhd" }; order.Create(); }