public GameInfoSelectionPageViewModel(IGameInfoRepository gameInfoRepository, IUserRepository userRepository) { _logger.Debug("Game info selection view model constructor called"); _gameInfoRepository = gameInfoRepository; _userRepository = userRepository; ChooseGameCommand = new RelayCommand(ChooseGame); LoadGames(); }
public GameController(GameInfo info, IGameInfoRepository repository) { _logger.Debug( $"Game controller constructor called with parameters gameInfo = {info}, iGameInfoRepository = {repository}"); _gameInfoRepository = repository; LoadGame(info); GameLogic.Player1.OnGetCell += RecieveCellNumber; GameLogic.Player2.OnGetCell += RecieveCellNumber; }
public GameController(GameLogic gameLogic, IGameInfoRepository gameInfoRepository) { _logger.Debug( $"Game controller constructor called with parameters gameLogic = {gameLogic}, iGameInfoRepository = {gameInfoRepository}"); _gameInfoRepository = gameInfoRepository; GameLogic = gameLogic; GameLogic.Player1.OnGetCell += RecieveCellNumber; GameLogic.Player2.OnGetCell += RecieveCellNumber; }
public GameInfoService(IGameInfoRepository gameInfoRepository, IMessageService messageService, IGameQuestionService gameQuestionService, IGameTimerService gameTimerService, IGameStateService gameStateService) { this.gameInfoRepository = gameInfoRepository; this.messageService = messageService; this.gameQuestionService = gameQuestionService; this.gameTimerService = gameTimerService; this.gameStateService = gameStateService; }
public GamePageViewModel(IGameInfoRepository gameInfoRepository) { _logger.Debug("Main window view model constructor called"); GameInfoRepository = gameInfoRepository; CellClickCommand = new RelayParameterizedCommand(param => CellClick(param), param => CellClickCanExecute); StartNewGameCommand = new RelayParameterizedCommand(param => StartNewGame(), param => StartNewGameCanExecute); UndoRedoMoveCommand = new RelayParameterizedCommand(param => UndoRedo(param), param => UndoRedoCanExecute); SelectPlayerCommand = new RelayParameterizedCommand(param => SelectPlayer(param), param => SelectPlayerCanExecute); SaveGameCommand = new RelayParameterizedCommand(param => SaveGame(), param => SaveGameCanExecute); }
public GetGameInfoCmdHandler(IGameInfoRepository rep, IAllRedisRepository redisRepository) { _gameRepository = rep; _redisRepository = redisRepository; }
public GamesInfoController(ILogger <GamesInfoController> logger, IGameInfoRepository gameRepository) { _logger = logger; _gameRepository = gameRepository; }
public GamesFetcher(ILogger <GamesFetcher> logger, IGameInfoRepository repository, IFetcherAlgorithm fetcher) { _logger = logger; _repository = repository; _fetcher = fetcher; }
public GetGameInfoCommandHandler(IGameInfoRepository rep, IAccountRedisRepository redis) { _gameRepository = rep; _redis = redis; }