Exemplo n.º 1
0
        public void testRemoteListMapSetListInteger()
        {/* USE THIS FILE ACCORDING TO THE COPYRIGHT RULES IN LICENSE.TXT WHICH IS PART OF THE SOURCE CODE PACKAGE */
            log.info("testRemoteListMapSetListInteger(");

            ListListTypes obj = new ListListTypes();
            List <IDictionary <int, IList <HashSet <int> > > > list = new List <IDictionary <int, IList <HashSet <int> > > >();

            for (int i = 0; i < 2; i++)
            {
                IDictionary <int, IList <HashSet <int> > > map = new Dictionary <int, IList <HashSet <int> > >();
                for (int j = 0; j < 3; j++)
                {
                    IList <HashSet <int> > list2 = new List <HashSet <int> >();
                    for (int k = 0; k < 4; k++)
                    {
                        HashSet <int> set = new HashSet <int>();
                        list2.Add(set);
                        for (int n = 0; n < 5; n++)
                        {
                            int pt = n * k * j * i;
                            set.Add(pt);
                        }
                    }
                    map[j] = list2;
                }
                list.Add(map);
            }
            obj.Int3 = list;

            remote.SetInt4(obj.Int3);
            TestUtils.assertEquals(log, "int4", obj.Int3, remote.GetInt4());

            log.info(")testRemoteListMapSetListint");
        }
 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 <IList <IDictionary <int, IList <HashSet <int> > > > > __byps__outerResult = new BAsyncResultSendMethod <IList <IDictionary <int, IList <HashSet <int> > > > >(__byps__asyncResult, new byps.test.api.BResult_1633500852());
         __byps__remoteT.GetInt4(BAsyncResultHelper.ToDelegate(__byps__outerResult));
     } catch (Exception e) {
         __byps__asyncResult.setAsyncResult(null, e);
     }
 }