Beispiel #1
0
        public void ItemListObjectTest()
        {
            var list = GetItemList();

            Assert.AreEqual(ShippingAddressTest.GetShippingAddress().recipient_name, list.shipping_address.recipient_name);
            Assert.AreEqual(list.items.Count, 2);
        }
Beispiel #2
0
        public static ItemList GetItemList()
        {
            List <Item> items = new List <Item>();

            items.Add(ItemTest.GetItem());
            items.Add(ItemTest.GetItem());
            ItemList itemList = new ItemList();

            itemList.items            = items;
            itemList.shipping_address = ShippingAddressTest.GetShippingAddress();
            return(itemList);
        }