public void FootballStandingStaticRepositoryHasCorrectMinimumGoalDifferential()
        {
            var repo = new FootballStandingStaticRepository();
            IEnumerable <IItem> result = ((IRepository <IFootballStanding>)repo).GetMinimumDifferential();

            Approvals.VerifyAll(result, "Football Standing");
        }
Ejemplo n.º 2
0
        private static void RunFootballStandingStaticRepository()
        {
            FootballStandingStaticRepository repo = new FootballStandingStaticRepository();

            Console.WriteLine("Searching Weather Data Point Static Repository");
            IEnumerable <IFootballStanding> result = ((IRepository <IFootballStanding>)repo).GetMinimumDifferential();

            Console.WriteLine("Found Team {0} has the smallest goal differential of {1}", result.FirstOrDefault().Team, result.FirstOrDefault().GoalDifferential);
        }
        public void FootballStandingStaticRepositoryInstantiates()
        {
            var repo = new FootballStandingStaticRepository();

            Approvals.VerifyAll(repo, "Football Standing");
        }