Exemple #1
0
        public DataBaseService()
        {
            // get race events from file. Each line represents a race event
            _raceEvents = getRaceEvents();

            // create our repositories from  the race events.
            // This is a reasonable way to do this since we don't have a structured database
            Races          = FactoryRaces(_raceEvents);
            Pilots         = FactoryPilots(_raceEvents);
            PilotRaceStats = FactoryRacePilotStats(_raceEvents, Races.GetAll(), Pilots.GetAll());
        }