public ChampionshipController() { this.raceFactory = new RaceFactory(); this.riderFactory = new RiderFactory(); this.motorcycleFactory = new MotorcycleFactory(); this.motorcycleRepository = new MotorcycleRepository(); this.raceRepository = new RaceRepository(); this.riderRepository = new RiderRepository(); }
public ChampionshipController( IMotorcycleFactory motorcycleFactory, IRaceFactory raceFactory, IRiderFactory riderFactory, MotorcycleRepository motorcycleRepository, RaceRepository raceRepository, RiderRepository riderRepository) { this.motorcycleFactory = motorcycleFactory; this.raceFactory = raceFactory; this.riderFactory = riderFactory; this.motorcycleRepository = motorcycleRepository; this.raceRepository = raceRepository; this.riderRepository = riderRepository; }
public OpenCommand(IList <string> arguments, ICarManager carManager) : base(arguments) { this.carManager = carManager; this.raceFactory = new RaceFactory(); }
public CarManager() { this.carFactory = CarFactory.CarFactoryInstance; this.raceFactory = RaceFactory.RaceFactoryInstance; this.writer = new ConsoleWriter(); }