Example #1
0
 public EcoMode(GearShiftBoundaries gearShiftBoundaries, IGearShifter gearShifter, IExternalSystems externalSystems)
 {
     _gearShiftBoundaries = gearShiftBoundaries ?? throw new ArgumentNullException(nameof(gearShiftBoundaries));
     _gearShifter         = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));
     _externalSystems     = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems));
 }
Example #2
0
 public SportMode(GearShiftBoundaries gearShiftBoundaries, IGearShifter gearShifter, IAggressiveModeFactory aggressiveModeFactory)
 {
     _gearShiftBoundaries   = gearShiftBoundaries ?? throw new ArgumentNullException(nameof(gearShiftBoundaries));
     _gearShifter           = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));
     _aggressiveModeFactory = aggressiveModeFactory ?? throw new ArgumentNullException(nameof(aggressiveModeFactory));
 }