예제 #1
0
        public void WeatherStaticRepositoryHasCorrectMinimumGoalDifferential()
        {
            var repo = new WeatherDataPointStaticRepository();
            IEnumerable <IItem> result = ((IRepository <IWeatherDataPoint>)repo).GetMinimumDifferential();

            Approvals.VerifyAll(result, "Weather Data Point");
        }
예제 #2
0
        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);
        }
예제 #3
0
        public void WeatherStaticRepositoryInstantiates()
        {
            var repo = new WeatherDataPointStaticRepository();

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