コード例 #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 PayerInfo GetPayerInfoBasic()
        {
            PayerInfo info = new PayerInfo();

            info.first_name       = "Joe";
            info.last_name        = "Shopper";
            info.payer_id         = "100";
            info.shipping_address = ShippingAddressTest.GetShippingAddress();
            return(info);
        }
コード例 #3
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);
        }