public void OpenWeatherByCityName(string city) { var forcast = _openWeatherService.GetForcastWeatherByCityName(city, OpenWeatherService.ResponseFormat.Json); var responseCodeWeatherApp = (string)forcast.cod; responseCodeWeatherApp.Should().Be("200", $"The weather app was not able to get forcast for city: {city}"); }