Пример #1
0
        static void PickWinner(int randomNum, IRace race, List <RunnerAppearance> appearances)
        {
            var winner = race.PickWinner(randomNum);
            var runner = appearances.SingleOrDefault(r => r.Name == winner.Name);

            runner.Appearances += 1;
            Console.WriteLine(winner.Name);
        }