public VehicleLapService(NascarTrack track) { if (track == null) { throw new ArgumentNullException(nameof(track)); } LapTimeService = new LapTimeService(track); }
protected VehicleLapService(ILapTimeService lapTimeService) { LapTimeService = lapTimeService ?? throw new ArgumentNullException(nameof(lapTimeService)); }
//public ILapTimeService LapTimeService { get; set; } #endregion #region ctor public VehicleLapService2(ILapTimeService lapTimeService) : base(lapTimeService) { // LapTimeService = lapTimeService ?? throw new ArgumentNullException(nameof(lapTimeService)); }