/// <inheritdoc /> public Task <IEnumerable <string> > GetForecastImageChart(string stationId, ForecastOptionImage optionData) { var requestUri = $"chart/image/{stationId}"; var body = new { name = optionData.GetDescription() }; return(PostAsync <IEnumerable <string> >(requestUri, body)); }
public async Task GetForecastImageChart_deve_retornar_valor(string stationId, ForecastOptionImage optionImage) { using var scope = Provider.CreateScope(); var forecastService = scope.ServiceProvider.GetService <IForecastService>(); var values = await forecastService.GetForecastImageChart(stationId, optionImage); Assert.NotNull(values); }