public void StartGame() { MenuReturnType rtype = MenuReturnType.None; do { // TO DO : Players Select Count Console.Clear(); playerSelectionController = new PlayerSelectionController(); gameStatus.PlayersCount = playerSelectionController.GetPlayersCount(); // TO DO : DiecesSelect diceSelectionController = new DiceSelectionController(); gameStatus.DicesCount = diceSelectionController.GetDiceCount(); //Console.WriteLine($"Pasirinkta {gameStatus.DicesCount}"); // TO DO : Run action.. GameRunner gameRunner = new GameRunner(gameStatus.PlayersCount, gameStatus.DicesCount); rtype = gameRunner.RunGame(); } while (rtype == MenuReturnType.ReplayGame); }
public PlayerSelectionControllerTest_Index() { _tournamentCreator.CreateTournament(Arg.Any<IEnumerable<Team>>()).Returns(new Tournament()); _playerSelectionController = new PlayerSelectionController(_getEveryPlayerEntityQuery, Substitute.For<IGetPlayersByIdsQuery>(), Substitute.For<IAddCommand<Tournament>>(), Substitute.For<ITeamCreator>(), _tournamentCreator); }