Esempio n. 1
0
        public double AverageScoreForTipstersWhoTipped(GrandPrix grandPrix)
        {
            var tips = from tipster in Tipsters
                       from tip in tipster.Tips
                       where tip.Key == grandPrix && tip.Value != null
                       select grandPrix.ScoreForTip(tip.Value);


            return(tips.Count() > 0 ? tips.Average() : 0);
        }
Esempio n. 2
0
 public Int32 ScoreTip(GrandPrix race)
 {
     return(race.ScoreForTip(this));
 }