Beispiel #1
0
        public static void Main(string[] args)
        {
            Configuration config = new Configuration();

            Object handler = new object();

            HandlerProvider provider = new HandlerProvider();

            provider.createHandler(config.getHandlers());
            EntityManager em = new EntityManager();

            em.createEntities(config.getEntities());

            Routes route = new Routes(em, provider);

            route.DisplayMainMenu();


            /* foreach (KeyValuePair<string,object> element in em.Entity)
             * {
             *   Console.WriteLine(element.Value);
             *   Console.WriteLine(element.Key);
             *        //handler = new BugHandler((Bugs) element.Value);
             *   provider.setHandler(element.Key);
             *   provider.setHandlerEntity(element.Value);
             *
             * }*/
            //Console.WriteLine("Handler Object :- {0}", provider);
        }
Beispiel #2
0
        public static void Main(string[] args)
        {
            Configuration config = new Configuration();

            object          handler  = new object();
            HandlerProvider provider = new HandlerProvider();

            provider.createHandler(config.getHandlers());
            EntityManager em = new EntityManager();

            em.createEntities(config.getEntities());
            IEnumerable <KeyValuePair <string, object> > handlerType = provider.getHandlerByKey("Bugs");

            Console.WriteLine("Handler Object{0}", handlerType);


            foreach (KeyValuePair <string, object> element in handlerType)
            {
                Console.WriteLine("Handler Type Key :- {0} | Handler Type Value :- {1}", element.Key, element.Value);
            }



            /* foreach (KeyValuePair<string,object> element in em.Entity)
             * {
             *   Console.WriteLine(element.Value);
             *   Console.WriteLine(element.Key);
             *        //handler = new BugHandler((Bugs) element.Value);
             *   provider.setHandler(element.Key);
             *   provider.setHandlerEntity(element.Value);
             *
             * }*/
            //Console.WriteLine("Handler Object :- {0}", provider);
        }
Beispiel #3
0
 public Routes(OOPS.EntityManager em, OOPS.HandlerProvider hp)
 {
     this.em = em;
     this.hp = hp;
 }