public TrailerMode(IDriveMode baseMode, IGearShifter gearShifter, IExternalSystems externalSystems) { _baseMode = baseMode ?? throw new ArgumentNullException(nameof(baseMode)); _gearShifter = gearShifter ?? throw new ArgumentNullException(nameof(gearShifter)); _externalSystems = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems)); }
public MDynamicsMode(AngularSpeed cutOffAngularSpeed, IDriveMode baseMode, IExternalSystems externalSystems) { _cutOffAngularSpeed = cutOffAngularSpeed ?? throw new ArgumentNullException(nameof(cutOffAngularSpeed)); _baseMode = baseMode ?? throw new ArgumentNullException(nameof(baseMode)); _externalSystems = externalSystems ?? throw new ArgumentNullException(nameof(externalSystems)); }