public override void execute(BRemote __byps__remote, BAsyncResultIF <Object> __byps__asyncResult) { // checkpoint byps.gen.cs.GenApiClass:413 try { RemoteListTypes __byps__remoteT = (RemoteListTypes)__byps__remote; BAsyncResultSendMethod <Object> __byps__outerResult = new BAsyncResultSendMethod <Object>(__byps__asyncResult, new byps.test.api.BResult_19()); __byps__remoteT.SetShort1(short1Value, BAsyncResultHelper.ToDelegate(__byps__outerResult)); } catch (Exception e) { __byps__asyncResult.setAsyncResult(null, e); } }
public void testRemoteListTypes() { log.info("testRemoteListTypes("); ListTypes obj = new ListTypes(); obj.Boolean1 = new List <bool>(new bool[] { true, false }); obj.Byte1 = new List <byte>(new byte[] { (byte)1, (byte)2, (byte)3 }); obj.Char1 = new List <char>(new char [] { 'a', 'b' }); obj.Double1 = new List <double>(new double[] { 0.0, 0.1, 0.2 }); obj.Float1 = new List <float>(new float[] { 1f, 2f, 3f, 4f }); obj.Int1 = new List <int>(new int[] { 1, 2, 3, 4, 5 }); obj.Long1 = new List <long>(new long[] { 1L, 2L, 3L, 4L, 5L, 6L }); obj.PrimitiveTypes1 = new List <PrimitiveTypes>(new PrimitiveTypes[] { TestUtils.createObjectPrimitiveTypes() }); obj.Short1 = new List <short>(new short[] { (short)1 }); obj.String1 = new List <String>(new String[] { "a", "b", "c" }); obj.Date1 = new List <DateTime>(new DateTime[] { new DateTime(), new DateTime(1999, 11, 22, 23, 33, 33, 333) }); obj.Obj1 = new List <Object>(); obj.Obj1.Add(TestUtils.createObjectPrimitiveTypes()); remote.SetBoolean1(obj.Boolean1); TestUtils.assertEquals(log, "boolean1", obj.Boolean1, remote.GetBoolean1()); remote.SetByte1(obj.Byte1); TestUtils.assertEquals(log, "byte1", obj.Byte1, remote.GetByte1()); remote.SetChar1(obj.Char1); TestUtils.assertEquals(log, "char1", obj.Char1, remote.GetChar1()); remote.SetDouble1(obj.Double1); TestUtils.assertEquals(log, "double1", obj.Double1, remote.GetDouble1()); remote.SetFloat1(obj.Float1); TestUtils.assertEquals(log, "float1", obj.Float1, remote.GetFloat1()); remote.SetInt1(obj.Int1); TestUtils.assertEquals(log, "int1", obj.Int1, remote.GetInt1()); remote.SetLong1(obj.Long1); TestUtils.assertEquals(log, "long1", obj.Long1, remote.GetLong1()); remote.SetPrimitiveTypes1(obj.PrimitiveTypes1); TestUtils.assertEquals(log, "primitiveTypes1", obj.PrimitiveTypes1, remote.GetPrimitiveTypes1()); remote.SetShort1(obj.Short1); TestUtils.assertEquals(log, "short1", obj.Short1, remote.GetShort1()); remote.SetString1(obj.String1); TestUtils.assertEquals(log, "string1", obj.String1, remote.GetString1()); remote.SetDate1(obj.Date1); TestUtils.assertEquals(log, "date1", obj.Date1, remote.GetDate1()); remote.SetObj1(obj.Obj1); TestUtils.assertEquals(log, "obj1", obj.Obj1, remote.GetObj1()); log.info(")testRemoteListTypes"); }