public CarConfiguration(IRaceTrack raceTrack, double fuelCapacity, TimeSpan timePerLap, double fuelConsumptionPerLap) { _raceTrack = (RaceTrack)raceTrack; _fuelCapacity = fuelCapacity; _timePerLap = timePerLap; _fuelConsumptionPerLap = fuelConsumptionPerLap; _configurationId = Guid.NewGuid(); }
public static bool ValidiateVehicle <T>(IRaceTrack _raceTrack, T vehiclie) where T : Vehicle { return(_raceTrack != null && _raceTrack.vehicles.Count < Constraint.maxNumberVehiclesOnRaceTrack && vehiclie.PassInspection); }
public RaceTrackService(CoreCRUDContext context, IRaceTrack raceTrack) { _context = context; _raceTrack = raceTrack; }