示例#1
0
 /// <remarks/>
 public System.IAsyncResult BegingetInfo(TGetInfo_Input[] CrossSellings, System.AsyncCallback callback, object asyncState) {
     return this.BeginInvoke("getInfo", new object[] {
                 CrossSellings}, callback, asyncState);
 }
示例#2
0
		/// <summary>
		/// test get method after update
		/// </summary>
		public void testGet2()
		{
			Console.WriteLine("CrossSellingTest: testGet after update");

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

			TGetInfo_Return[] CrossSellings_out = crossSellingService.getInfo(CrossSellings);

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

			TGetInfo_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("20", CrossSelling_out.Position, "Position");
			Assert.AreEqual("CrossSelling", CrossSelling_out.Type, "Type");

			Assert.AreEqual(2, CrossSelling_out.Comment.Length, "Number of languages in Comment");
			Hashtable resultComment = new Hashtable();
			resultComment.Add(CrossSelling_out.Comment[0].LanguageCode, CrossSelling_out.Comment[0].Value);
			resultComment.Add(CrossSelling_out.Comment[1].LanguageCode, CrossSelling_out.Comment[1].Value);

			Assert.AreEqual(Comment2[0].Value, resultComment[Comment1[0].LanguageCode], "initial localized Comment "+Comment1[0].LanguageCode);
			Assert.AreEqual(Comment2[1].Value, resultComment[Comment1[1].LanguageCode], "initial localized Comment "+Comment1[1].LanguageCode);
		}
示例#3
0
 public TGetInfo_Return[] getInfo(TGetInfo_Input[] CrossSellings) {
     object[] results = this.Invoke("getInfo", new object[] {
                 CrossSellings});
     return ((TGetInfo_Return[])(results[0]));
 }