public void WeatherFileRepositoryHasCorrectMinimumTemperatureDifferential()
        {
            var repo   = new WeatherDataPointFileRepository();
            var result = ((IRepository <IWeatherDataPoint>)repo).GetMinimumDifferential();

            Approvals.VerifyAll(result, "Weather Data Point");
        }
Пример #2
0
        private static void RunWeatherDataPointFileRepository()
        {
            WeatherDataPointFileRepository repo2 = new WeatherDataPointFileRepository();

            Console.WriteLine("Searching Weather Data Point File Repository");
            IEnumerable <IWeatherDataPoint> result = ((IRepository <IWeatherDataPoint>)repo2).GetMinimumDifferential();

            Console.WriteLine("Found Day {0} has the smallest temperature differential of {1}", result.FirstOrDefault().Day,
                              result.FirstOrDefault().TemperatureDifferential);
        }
        public void WeatherFileRepositoryTest()
        {
            var repo = new WeatherDataPointFileRepository();

            Approvals.VerifyAll(repo, "Weather Data Point");
        }