public void GetCentreRanks_returns_expected_list() { // When var result = centresService.GetCentresForCentreRankingPage(3, 14, null); // Then result.Count().Should().Be(10); }
public IActionResult Index(int?regionId = null, Period?period = null) { period ??= Period.Fortnight; var centreId = User.GetCentreId(); var regions = regionDataService.GetRegionsAlphabetical(); var centreRankings = centresService.GetCentresForCentreRankingPage(centreId, period.Days, regionId); var model = new CentreRankingViewModel(centreRankings, centreId, regions, regionId, period); return(View(model)); }