public void AddFixedPriceItem()
        {
            if (TestData.NewFixedPriceItem != null)
            {
                string outMsg;
                ItemHelper.EndItem(this.apiContext, TestData.NewFixedPriceItem, out outMsg);
                TestData.NewFixedPriceItem = null;
            }
            ItemType item = ItemHelper.BuildItem();

            item.ListingType = ListingTypeCodeType.FixedPriceItem;
            // Execute the API.
            FeeTypeCollection fees;
            // VerifyAddItem
            VerifyAddFixedPriceItemCall vi = new VerifyAddFixedPriceItemCall(this.apiContext);

            fees = vi.VerifyAddFixedPriceItem(item);
            Assert.IsNotNull(fees);
            // AddItem
            AddFixedPriceItemCall ai = new AddFixedPriceItemCall(this.apiContext);

            fees = ai.AddFixedPriceItem(item);
            Assert.IsNotNull(fees);
            // Save the result.
            TestData.NewFixedPriceItem = item;
        }
Example #2
0
        // http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/VerifyAddFixedPriceItem.html
        public VerifyAddFixedPriceItemCall VerifyAddFixedPriceItem(SiteCodeType siteid)
        {
            var call = new VerifyAddFixedPriceItemCall(api);

            call.Site = siteid;

            call.VerifyAddFixedPriceItem(item);

            return(call);
        }