Esempio n. 1
0
        public void TestGetProduct()
        {
            ProductsRequest productsRequest = new ProductsRequest();

            productsRequest.Ids = new string[] { "1004004012288125" };
            productsRequest.IncludeAttributes = true;
            productsRequest.Offers            = new EnumTypes.OfferType[] {
                EnumTypes.OfferType.ALL
            };

            ProductList productList = client.GetProducts(productsRequest);

            Assert.IsNotNull(productList.Products);
            Assert.IsTrue(productList.Products.Count == 1);
        }