Exemple #1
0
        private void UpdateResultsName(ChampionshipDto championship)
        {
            var driverDictionary = championship.GetGuidToDriverDictionary();

            foreach (var driverResult in championship.GetAllResults().SelectMany(x => x.DriverSessionResult))
            {
                driverResult.DriverName = driverDictionary[driverResult.DriverGuid].LastUsedName;
            }
        }
Exemple #2
0
 public DriverSessionResultComparer(ChampionshipDto championshipDto)
 {
     _results = championshipDto.GetAllResults().SelectMany(x => x.DriverSessionResult).ToList();
 }