public async Task TestStatisticsAreReturnedForStuntedKidsInSolomonIslands() { string code = "MDG_0000000027"; IndicatorDataFetcher indicatorDataFetcher = new IndicatorDataFetcher(); IndicatorDataItems indicatorDataItems = await indicatorDataFetcher.GetWHOStatistics(new Indicator(code, string.Empty)); Assert.IsTrue(indicatorDataItems.Items.Any(s => s.Country == "Solomon Islands")); }
public async Task <ActionResult> Index(string code, CancellationToken ctk) { IList <Indicator> indicators = await indicatorsService.GetAllIndicatorsAsync(); Indicator indicator = indicators.FirstOrDefault(x => x.Code == code); IndicatorDataItems whoStatistics = await indicatorDataFetcher.GetWHOStatistics(indicator); return(View(whoStatistics)); }