private static LineUp GetBestLineups(int playerCount) { IList <GameSnapshot> snapshots = CsvImporter.GetGameSnapShots(CSV_3_SNAPSHOTS); var lineup = LineUp.GetBestLineup(playerCount, snapshots); return(lineup); }
private LineUpViewModel GetBestLineup(int playerCount) { LineUp lineup = LineUp.GetBestLineup(playerCount, this._snapshots, LINEUPS_MIN_TIME); List <PlayerViewModel> players = this.PlayersData.Where(pvm => lineup.Contains(pvm.Number)).ToList(); var vm = new LineUpViewModel(players, this._snapshots); return(vm); }