Exemplo n.º 1
0
        public TrailerModeFactory(IDriveModeFactory baseModeFactory, ITrailerModeParametersProvider trailerModeParametersProvider, IGearShifter gearShifter, IExternalSystems externalSystems)
        {
            _baseModeFactory = baseModeFactory ?? throw new ArgumentNullException(nameof(baseModeFactory));
            _trailerModeParametersProvider = trailerModeParametersProvider ?? throw new ArgumentNullException(nameof(trailerModeParametersProvider));
            _gearShifter = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));

            _externalSystems = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems));
        }
 public MDynamicsModeFactory(IDriveModeFactory baseModeFactory, IMDynamicsModeParametersProvider mDynamicsModeParametersProvider, IExternalSystems externalSystems)
 {
     _baseModeFactory = baseModeFactory ?? throw new ArgumentNullException(nameof(baseModeFactory));
     _mDynamicsModeParametersProvider = mDynamicsModeParametersProvider ?? throw new ArgumentNullException(nameof(mDynamicsModeParametersProvider));
     _externalSystems = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems));
 }
 public GearBoxStateFactory(IDriveModeFactory driveModeFactory, IGearBoxStateValueProvider gearBoxStateValueProvider, IGearShifter gearShifter)
 {
     _driveModeFactory          = driveModeFactory ?? throw new ArgumentNullException(nameof(driveModeFactory));
     _gearBoxStateValueProvider = gearBoxStateValueProvider ?? throw new ArgumentNullException(nameof(gearBoxStateValueProvider));
     _gearShifter = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));
 }
Exemplo n.º 4
0
 public DriveState(IDriveModeFactory driveModeFactory, IGearShifter gearShifter)
 {
     _driveModeFactory = driveModeFactory ?? throw new ArgumentNullException(nameof(driveModeFactory));
     _gearShifter      = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter));
 }