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; }
public void WhenIAverageTheScores() { _reporting = new AverageScoreReporting(_performances); }