public void DistrictsStatsTests() { var stats = _controller.DistrictsStats(); var viewResult = stats as JsonResult; var district = ((List <StatisticsController.DistrictsStat>)viewResult.Value)[0]; Assert.True(district.District.IdDistrict == 1); }