public Controller() { this.astronautFactory = new AstronautFactory(); this.astronauts = new AstronautRepository(); this.planets = new PlanetRepository(); this.mission = new Mission(); this.exploredPlanets = new List <IPlanet>(); }
public Controller( AstronautRepository astronautRepository, PlanetRepository planetRepository, IAstronautFactory astronautFactory, IPlanetFactory planetFactory, IMission mission) { this.astronautRepository = astronautRepository; this.planetRepository = planetRepository; this.astronautFactory = astronautFactory; this.planetFactory = planetFactory; this.mission = mission; }