예제 #1
0
        public TestCorporation()
        {
            corporation = new Corporation();
            Division rnd = new Division("R&D");

            rnd.Add(new VP("Hank", "R&D"));
            rnd.Add(new VP("Tony", "R&D"));
            rnd.Add(new VP("Bruce", "R&D"));
            Division battle = new Division("battle");

            battle.Add(new VP("Wanda", "battle"));
            battle.Add(new VP("Pietro", "battle"));
            battle.Add(new VP("Vision", "battle"));
            battle.Add(new VP("Steve", "battle"));
            Division agent = new Division("agent");

            agent.Add(new VP("Natasha", "agent"));
            agent.Add(new VP("Maria", "agent"));
            battle.Add(agent);
            VP vp = new VP("Nick", "SHIELD");

            corporation.Add(rnd);
            corporation.Add(battle);
            corporation.Add(vp);
            corporation.print();
        }
        public Corporation Create()
        {
            var corporation = new Corporation("My huge Book Store Company!");

            corporation.Add(CreateWestStore());

            return(corporation);
        }