Пример #1
0
        private ArrayList updateContent()
        {
            List <TUpdate_Input> updates = new List <TUpdate_Input>();
            TUpdate_Input        update  = new TUpdate_Input();

            update.Path = productPaths[0];

            TLocalizedValue name = new TLocalizedValue();

            name.LanguageCode = "de";
            name.Value        = "Updated DotNetTestProduct " + productPaths[0];
            update.Name       = new TLocalizedValue[] { name };

            updates.Add(update);

            return(productServiceClient.update(updates.ToArray()));
        }
Пример #2
0
        /// <summary>
        /// test update of a Product and check if method returns a true value
        /// </summary>
        public void update()
        {
            TUpdate_Input[] Products = new TUpdate_Input[] { Product_update };

            ArrayList Products_out = serviceClient.update(Products);

            // test if update was successful
            Assert.AreEqual(1, Products_out.Count, "udpated result set");

            TUpdate_Return Product_out = (TUpdate_Return)Products_out.ToArray()[0];

            Assert.AreEqual(path + alias, Product_out.Path, "product path");
            Assert.AreEqual(true, Product_out.updated, "updated?");
        }