コード例 #1
0
        public void FootballStandingStaticRepositoryHasCorrectMinimumGoalDifferential()
        {
            var repo = new FootballStandingStaticRepository();
            IEnumerable <IItem> result = ((IRepository <IFootballStanding>)repo).GetMinimumDifferential();

            Approvals.VerifyAll(result, "Football Standing");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: JohnMichaelMiller/Kata
        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);
        }
コード例 #3
0
        public void FootballStandingStaticRepositoryInstantiates()
        {
            var repo = new FootballStandingStaticRepository();

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