/// <summary> /// delete bundles from a product bundle and check if the deletion was successful /// </summary> public void testDelete() { Console.WriteLine("ProductBundleTest: testDelete"); TBundledProductPath bundledProductPath = new TBundledProductPath(); bundledProductPath.Path = bundled_product2; TBundledProductPath[] bundledProductPaths = new TBundledProductPath[] { bundledProductPath }; TDelete_Input productBundle = new TDelete_Input(); productBundle.Product = product; productBundle.BundledProductPaths = bundledProductPaths; TDelete_Input[] productBundles = new TDelete_Input[]{productBundle}; TDelete_Return[] productBundles_out = productBundleService.delete(productBundles); // test if deletion was successful Assert.AreEqual(1, productBundles_out.GetLength(0), "delete result count"); TDelete_Return productBundle_out = productBundles_out[0]; Assert.IsNull(productBundle_out.Error, "delete: no error"); Assert.AreEqual(product, productBundle_out.Product, "Product path"); Assert.IsTrue(productBundle_out.deleted, "deleted?"); }
/// <remarks/> public System.IAsyncResult Begindelete(TDelete_Input[] ProductBundles, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("delete", new object[] { ProductBundles}, callback, asyncState); }
public TDelete_Return[] delete(TDelete_Input[] ProductBundles) { object[] results = this.Invoke("delete", new object[] { ProductBundles}); return ((TDelete_Return[])(results[0])); }