/// <remarks/> public System.IAsyncResult Beginupdate(TUpdate_Input[] CrossSellings, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("update", new object[] { CrossSellings}, callback, asyncState); }
/// <summary> /// update a cross selling and check if the update was successful /// </summary> public void testUpdate() { Console.WriteLine("CrossSellingTest: testUpdate"); // update a CrossSelling TUpdate_Input crossSelling = new TUpdate_Input(); crossSelling.Product = product; crossSelling.TargetProduct = target_product; crossSelling.Type = "CrossSelling"; crossSelling.Position = "20"; crossSelling.Comment = Comment2; TUpdate_Input[] CrossSellings = new TUpdate_Input[]{crossSelling}; TUpdate_Return[] CrossSellings_out = crossSellingService.update(CrossSellings); // test if update was successful Assert.AreEqual(1, CrossSellings_out.GetLength(0), "insert result count"); TUpdate_Return CrossSelling_out = CrossSellings_out[0]; Assert.IsNull(CrossSelling_out.Error, "insert: no error"); Assert.IsTrue(CrossSelling_out.updated, "updated?"); Assert.AreEqual(product, CrossSelling_out.Product, "Product path"); Assert.AreEqual("CrossSelling", CrossSelling_out.Type, "CrossSelling type"); }
public TUpdate_Return[] update(TUpdate_Input[] CrossSellings) { object[] results = this.Invoke("update", new object[] { CrossSellings}); return ((TUpdate_Return[])(results[0])); }