Example #1
0
        public void AssignPlayer_WithinLimit_PlayerAdded()
        {
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Ali", blue.Id, tournamentA.Id));
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Rafiq", blue.Id, tournamentA.Id));
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Nathan", blue.Id, tournamentA.Id));
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Jon", blue.Id, tournamentA.Id));
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Bass", blue.Id, tournamentA.Id));
            tournamentService.AssignPlayer(tournamentA, blue, new Player("Geoff", blue.Id, tournamentA.Id));

            var playerList = tournamentService.RetrievePlayers(tournamentA, blue);

            Assert.IsTrue(playerList.Count() == 6);
        }