Ejemplo n.º 1
0
        [Fact]//USA XML
        public async Task GetItemInternationalInventory_XML_USA_Nothave_WarehouseList()
        {
            GetItemInternationalInventoryRequest InventoryRequest = new GetItemInternationalInventoryRequest()
            {
                // Condition= ItemCondition.New,
                Type  = ItemQueryType.NewEggItemNumber,
                Value = "9SIA0068KA0333"
            };

            CheckRequestString <GetItemInternationalInventoryRequest>(InventoryRequest);
            var body = await fadeAPI_USA_XML.GetItemInternationalInventory(InventoryRequest);

            Assert.IsType <GetItemInternationalInventoryResponse>(body);
        }
        //USA
        public async Task <GetItemInternationalInventoryResponse> GetItemInternationalInventory(GetItemInternationalInventoryRequest reqModel)
        {
            var request = CreateRequest <GetItemInternationalInventoryRequest>(reqModel);

            request.URI = "contentmgmt/item/international/inventory";
            var response = await client.PutAsync(request);

            var result = await ProcessResponse <GetItemInternationalInventoryResponse>(response);

            return(result);
        }