public void Returns5RecordsInForecast_OfTypeWeatherForecast() { IEnumerable <WeatherForecast> result = _weatherForecastBusiness.getForecast(); IEnumerator enumerator = result.GetEnumerator(); Assert.AreEqual(result.Count(), 10); Assert.IsInstanceOf(typeof(WeatherForecast), result.ToList().ElementAt(0)); }
public IEnumerable <WeatherForecast> Get() { return(_weatherForecastBusiness.getForecast()); }