public PlayerStateMachine(ITelegramSender sender, PlayerRepository playerRepository, ApprovalStateMachine approvalStateMachine, Game game) { _sender = sender; _playerRepository = playerRepository; _approvalStateMachine = approvalStateMachine; _game = game; }
public GameHostService() { var mockTelegramSender = new MockTelegramSender(this); var playerRepository = new PlayerRepository(); var game = new Game(playerRepository, mockTelegramSender); var adminStateMachine = new ApprovalStateMachine(mockTelegramSender, playerRepository, game); var playerStateMachine = new PlayerStateMachine(mockTelegramSender, playerRepository, adminStateMachine, game); MessageHandler = new MessageHandler(adminStateMachine, playerStateMachine); for (var i = 0; i <= 16; i++) { Users.Add(new TelegramMockUser(i, this, i == 0)); } }