public void WeatherStaticRepositoryHasCorrectMinimumGoalDifferential() { var repo = new WeatherDataPointStaticRepository(); IEnumerable <IItem> result = ((IRepository <IWeatherDataPoint>)repo).GetMinimumDifferential(); Approvals.VerifyAll(result, "Weather Data Point"); }
private static void RunWeatherDataPointStaticRepository() { WeatherDataPointStaticRepository repo = new WeatherDataPointStaticRepository(); Console.WriteLine("Searching Weather Data Point Static Repository"); IEnumerable <IWeatherDataPoint> result = ((IRepository <IWeatherDataPoint>)repo).GetMinimumDifferential(); Console.WriteLine("Found Day {0} has the smallest temperature differential of {1}", result.FirstOrDefault().Day, result.FirstOrDefault().TemperatureDifferential); }
public void WeatherStaticRepositoryInstantiates() { var repo = new WeatherDataPointStaticRepository(); Approvals.VerifyAll(repo, "Weather Point"); }