Beispiel #1
0
        public static void Main(String [] args)
        {
            Game [] games = new Game[2];
            games[0] = new CConficker(3);
            games[1] = new Miner("Ivan");

            PO[] typesOfPO = new PO[3];

            typesOfPO[0] = new TextProcessor();
            typesOfPO[1] = new Virus();
            typesOfPO[2] = new Word();

            Developer      developer = new Developer(games, typesOfPO);
            DeveloperLogic logic     = new DeveloperLogic(developer);

            logic.playInGame(games[0]);
            logic.playInGame(games[1]);
            logic.openProgram(typesOfPO[0]);
            logic.openProgram(typesOfPO[1]);
            logic.openProgram(typesOfPO[2]);
            Console.WriteLine("\n");
            Printer printer = new Printer();

            printer.IamPrinting(typesOfPO);
        }
Beispiel #2
0
        public DeveloperController()
        {
            EFGenericRepository <DeveloperPoco> repo = new EFGenericRepository <DeveloperPoco>();

            _logic = new DeveloperLogic(repo);
        }