Ejemplo n.º 1
0
        public ActionResult Teams()
        {
            var ratingCalculator = new RatingCalculator(new InMemoryRatingRepository());

            foreach (var match in GetMatchesInHistoricalOrder())
            {
                ratingCalculator.CalculateStatisticsForMatch(match);
            }

            var model = ratingCalculator.GetTeamRatingList();

            return View(model);
        }