Ejemplo n.º 1
0
        public void setup()
        {
            var ship1 = new Starship("Chimera");
            ship1.Fighters.AddRange(new[]
                                        {
                                            new FighterSquadron("Red"),
                                            new FighterSquadron("Gold"),
                                            new FighterSquadron("Blue"),
                                        });
            var ship2 = new Starship("Executor");
            ship2.Fighters.AddRange(new[]
                                        {
                                            new FighterSquadron("Rogue"),
                                            new FighterSquadron("Wraith"),
                                        });
            var ship3 = new Starship("Intrepid");
            ship3.Fighters.AddRange(new[]
                                        {
                                            new FighterSquadron("Alpha"),
                                            new FighterSquadron("Beta"),
                                            new FighterSquadron("Gamma"),
                                            new FighterSquadron("Ceta"),
                                            new FighterSquadron("Omega"),
                                        });

            _starships = new[] {ship1, ship2, ship3};
        }
Ejemplo n.º 2
0
 public void setup()
 {
     _starship = new Starship("Chimera");
     _starship.Fighters.AddRange(new[]
                                     {
                                         new FighterSquadron("Red"),
                                         new FighterSquadron("Gold"),
                                         new FighterSquadron("Blue"),
                                     });
 }