Пример #1
0
 public BoatSimulatorController(IBoatSimulatorDatabase database, IRace currentRace)
 {
     this.Database                = database;
     this.CurrentRace             = currentRace;
     this.JetEngineFactory        = new JetEngineFactory();
     this.SterndriveEngineFactory = new SterndriveEngineFactory();
 }
Пример #2
0
 public BoatSimulatorController(IBoatSimulatorDatabase database, IRace currentRace = null)
 {
     this.Database = database;
     this.CurrentRace = currentRace;
 }
 public BoatSimulatorController(IBoatSimulatorDatabase database, IRace currentRace)
 {
     this.Database      = database;
     this.CurrentRace   = currentRace;
     this.engineFactory = new EngineFactory();
 }