1 implementation of GetForecast
Microsoft.Extensions.Options.Contextual.Tests (1)
AcceptanceTests.cs (1)
55
public async Task<IEnumerable<WeatherForecast>>
GetForecast
(WeatherForecastContext context, CancellationToken cancellationToken)
2 references to GetForecast
Microsoft.Extensions.Options.Contextual.Tests (2)
AcceptanceTests.cs (2)
96
Assert.Equal("Fahrenheit", (await forecastService.
GetForecast
(new WeatherForecastContext { Country = "US" }, CancellationToken.None)).First().TemperatureScale);
97
Assert.Equal("Celsius", (await forecastService.
GetForecast
(new WeatherForecastContext { Country = "CA" }, CancellationToken.None)).First().TemperatureScale);