コード例 #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);
        }
コード例 #2
0
        public static ItemList GetItemList()
        {
            List <Item> items = new List <Item>
            {
                ItemTest.GetItem(),
                        ItemTest.GetItem()
            };
            ItemList itemList = new ItemList
            {
                items            = items,
                shipping_address = ShippingAddressTest.GetShippingAddress()
            };

            return(itemList);
        }