Example #1
0
 public TGetCrossSelling_Return[] get(TGetCrossSelling_Input[] CrossSellings) {
     object[] results = this.Invoke("get", new object[] {
                 CrossSellings});
     return ((TGetCrossSelling_Return[])(results[0]));
 }
Example #2
0
 /// <remarks/>
 public System.IAsyncResult Beginget(TGetCrossSelling_Input[] CrossSellings, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("get", new object[] {
                 CrossSellings}, callback, asyncState);
 }
Example #3
0
		/// <summary>
		/// test get method
		/// </summary>
		public void testGet()
		{
			Console.WriteLine("CrossSellingTest: testGet");

			TGetCrossSelling_Input CrossSelling_in = new TGetCrossSelling_Input();
			CrossSelling_in.Product	= product;
			CrossSelling_in.Type  = "CrossSelling";
			TGetCrossSelling_Input[] CrossSellings = new TGetCrossSelling_Input[]{CrossSelling_in};

			TGetCrossSelling_Return[] CrossSellings_out = crossSellingService.get(CrossSellings);

			// test if exists check was successful
			Assert.AreEqual(1, CrossSellings_out.GetLength(0), "get result count");

			TGetCrossSelling_Return	CrossSelling_out = CrossSellings_out[0];
			Assert.IsNull(CrossSelling_out.Error, "exists: no error");
			Assert.AreEqual(product, CrossSelling_out.Product, "Product path");
			Assert.AreEqual(target_product,	CrossSelling_out.TargetProduct,	"Target product path");
//			Assert.AreEqual("10", CrossSelling_out.Position, "Position");
			Assert.AreEqual("CrossSelling", CrossSelling_out.Type, "Type");
		}