public WhenTheFirstGameHasAWinnerInATournamentWithThreeDudes()
        {
            _tournament = new Tournament();
            _tournament.AddDude(_dudes[0]);
            _tournament.AddDude(_dudes[1]);
            _tournament.AddDude(_dudes[2]);

            _wonGame    = new Game(_dudes.Take(2));
            _secondGame = new Game(_dudes.Skip(2).Take(1));

            _tournament.AddGame(_wonGame);
            _tournament.AddGame(_secondGame);

            _wonDude = _wonGame.Dudes()[0];

            _tournament = new TournamentService().GameWon(_tournament, _wonGame, _wonDude);
        }
Ejemplo n.º 2
0
        public WhenAGameHasAWinnerInATournamentWithFourDudes()
        {
            _tournament = new Tournament();
            _tournament.AddDude(_dudes[0]);
            _tournament.AddDude(_dudes[1]);
            _tournament.AddDude(_dudes[2]);
            _tournament.AddDude(_dudes[3]);

            _wonGame = new Game(_dudes.Take(2));
            var secondGame = new Game(_dudes.Skip(2).Take(2));

            _tournament.AddGame(_wonGame);
            _tournament.AddGame(secondGame);

            _wonDude = _wonGame.Dudes()[0];

            _tournament = new TournamentService().GameWon(_tournament, _wonGame, _wonDude);
        }
Ejemplo n.º 3
0
        public WhenTheGameHasAWinnerInATournamentWithTwoDudes()
        {
            _tournament = new Tournament();
            _tournament.AddDude(_dudes[0]);
            _tournament.AddDude(_dudes[1]);

            _game = new Game(_dudes);

            _tournament.AddGame(_game);

            _wonDude = _game.Dudes()[0];

            _tournament = new TournamentService().GameWon(_tournament, _game, _wonDude);
        }