private void SetupTeam(ITeamResults team, double pointsPerGame, int played, int goalDifference, string name)
 {
     team.Stub(m => m.PointsPerGame).Return(pointsPerGame);
     team.Stub(m => m.Played).Return(played);
     team.Stub(m => m.GoalDifference).Return(goalDifference);
     team.Stub(m => m.Team).Return(name);
 }
        public void Setup()
        {
            team1 = MockRepository.GenerateMock<ITeamResults>();
            team2 = MockRepository.GenerateMock<ITeamResults>();
            team3 = MockRepository.GenerateMock<ITeamResults>();
            team4 = MockRepository.GenerateMock<ITeamResults>();
            team5 = MockRepository.GenerateMock<ITeamResults>();

            // So, setup 5 teams:
            SetupTeam(team1, 2.567, 20, 50, "team1");

            // team 2 has the same PPG but lower games played, so is sorted ahead of team 1
            SetupTeam(team2, 2.567, 19, 50, "team2");

            // team 3 has the same PPG and games played as team 2, but better goal difference, so is sorted higher
            SetupTeam(team3, 2.567, 19, 60, "team3");

            // team 4 has the same PPG and games and goal difference but a team name earlier in alphabet, so is sorted higher
            SetupTeam(team4, 2.567, 19, 60, "steam4");

            // team 5 has the highest PPG so gets sorted at the top.
            SetupTeam(team5, 2.789, 19, 60, "team5");
        }