public ActionResult Averages(string id)
        {
            var performances =
                RavenSession
                    .LoadStartingWith<PerformanceScore>(id + "/scores/");

            var averages = new AverageScoreReporting(performances);

            var model = new ReportingAveragesViewModel(averages);
            return PartialView(model);
        }
 public ReportingAveragesViewModel(AverageScoreReporting reporting)
 {
     Reporting = reporting;
 }
Ejemplo n.º 3
0
 public void WhenIAverageTheScores()
 {
     _reporting = new AverageScoreReporting(_performances);
 }