Exemple #1
0
 public TExists_Return[] exists(TExists_Input[] ProductBundles) {
     object[] results = this.Invoke("exists", new object[] {
                 ProductBundles});
     return ((TExists_Return[])(results[0]));
 }
Exemple #2
0
 /// <remarks/>
 public System.IAsyncResult Beginexists(TExists_Input[] ProductBundles, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("exists", new object[] {
                 ProductBundles}, callback, asyncState);
 }
		/// <summary>
		/// test exists method
		/// </summary>
		/// <param name="exists">if false, test is successful if the CrossSelling does NOT exists</param>
		public void testExists(bool expected)
		{
			Console.WriteLine("ProductBundleTest: testExists");

			TExists_Input productBundle = new TExists_Input();
			productBundle.Product			= product;
            productBundle.BundledProduct = bundled_product2;

			TExists_Input[] productBundles = new TExists_Input[]{productBundle};
			TExists_Return[] productBundles_out = productBundleService.exists(productBundles);

			// test if exists check was successful
			Assert.AreEqual(1, productBundles_out.GetLength(0), "exists result count");
			TExists_Return	productBundle_out = productBundles_out[0];
			Assert.IsNull(productBundle_out.Error, "exists: no error");
			Assert.AreEqual(product, productBundle_out.Product,	"Product path");
			Assert.AreEqual(expected, productBundle_out.exists, "exists?");
		}