public void GetWeatherForecastJson_When_CityDoesntExist_Then_Return_Null()
        {
            //Arrange
            var service = new WeatherForecastProvider();
            //Act
            var result = service.GetWeatherForecastJson("", 7, "sssssssssssssss");

            //Assert
            Assert.That(result, Is.EqualTo(null));
        }
 public WeatherForecastController(WeatherForecastProvider provider, ILogger <WeatherForecastController> logger)
 {
     _provider = provider;
     _logger   = logger;
 }
Ejemplo n.º 3
0
 public WeatherController(IHostingEnvironment env, WeatherForecastProvider forecastProvider)
 {
     _env = env;
     _forecastProvider = forecastProvider;
 }
 public WeatherForecastService(WeatherForecastProvider provider)
 {
     _provider = provider;
 }