public TeamsMailHelper(ObservableCollection<PlayerMatch> playerMatches, IFootballRepository footballRepository, string fromAddress)
 {
     _playerMatches = playerMatches;
     _fromAddress = fromAddress;
     _footballRepository = footballRepository;
     _toAddresses = GetEmailAddresses();
     _players = _footballRepository.GetAllPlayers();
     _teams = _footballRepository.GetTeams();
 }
        public static void AssignShortestTeamToBibs(ObservableCollection<PlayerMatch> playerMatchList, IFootballRepository footballRepository)
        {
            var teams = footballRepository.GetTeams();
            var players = footballRepository.GetActivePlayers();

            playerMatchList.AssignTeamsBasedOnListOrder(teams);

            var playersInList = from player in players
                                  join playermatch in playerMatchList on player.PlayerID equals playermatch.PlayerID
                                  where player.Height != null
                                  select player;

            var shortestPlayer = GetShortestPlayer(playersInList);

            if (ShortestPlayerNotInFirstTeam(playerMatchList, shortestPlayer))
                playerMatchList.SwapTeams(teams);
        }
 public GiantKillerSelectorService(IFootballRepository footballRepository)
 {
     _footballRepository = footballRepository;
     _playerStats = _footballRepository.GetPlayerStats();
     _teams = _footballRepository.GetTeams();
 }
 public TheProportionerSelectorService(IFootballRepository footballRepository)
 {
     _footballRepository = footballRepository;
     _playerStats = _footballRepository.GetPlayerStats();
     _teams = _footballRepository.GetTeams();
 }
 public ThePorterSelectorService(IFootballRepository footballRepository)
 {
     _footballRepository = footballRepository;
     _playerStats = GetPlayerStatsForAllPlayers();
     _teams = _footballRepository.GetTeams();
 }