コード例 #1
0
        public VehicleLapService(NascarTrack track)
        {
            if (track == null)
            {
                throw new ArgumentNullException(nameof(track));
            }

            LapTimeService = new LapTimeService(track);
        }
コード例 #2
0
 protected VehicleLapService(ILapTimeService lapTimeService)
 {
     LapTimeService = lapTimeService ?? throw new ArgumentNullException(nameof(lapTimeService));
 }
コード例 #3
0
        //public ILapTimeService LapTimeService { get; set; }

        #endregion

        #region ctor

        public VehicleLapService2(ILapTimeService lapTimeService)
            : base(lapTimeService)
        {
            // LapTimeService = lapTimeService ?? throw new ArgumentNullException(nameof(lapTimeService));
        }