예제 #1
0
 public EndSubmissionsValidator(
     IBaseGameRequestsValidator baseGameRequestsValidator,
     IGameRoundsRepository gameRoundsRepository,
     IPlayerAnswersRepository playerAnswersRepository,
     IGameOrRoundOwnerRule gameOrRoundOwnerRule)
 {
     this.baseGameRequestsValidator = baseGameRequestsValidator;
     this.gameRoundsRepository      = gameRoundsRepository;
     this.playerAnswersRepository   = playerAnswersRepository;
     this.gameOrRoundOwnerRule      = gameOrRoundOwnerRule;
 }
예제 #2
0
 public SelectAnswerValidator(
     IBaseGameRequestsValidator baseGameRequestsValidator,
     IRoundOwnerRule roundOwnerRule,
     IPlayerAnswersRepository playerAnswersRepository,
     IGameRoundsRepository gameRoundsRepository)
 {
     this.baseGameRequestsValidator = baseGameRequestsValidator;
     this.roundOwnerRule            = roundOwnerRule;
     this.playerAnswersRepository   = playerAnswersRepository;
     this.gameRoundsRepository      = gameRoundsRepository;
 }
예제 #3
0
 public SubmitAnswerValidator(
     IBaseGameRequestsValidator baseGameRequestsValidator,
     IPlayersRepository playersRepository,
     IGameRoundsRepository gameRoundsRepository,
     IPlayerCardsRepository playerCardsRepository,
     IQuestionCardsRepository questionCardsRepository,
     IPlayerAnswersRepository playerAnswersRepository)
 {
     this.baseGameRequestsValidator = baseGameRequestsValidator;
     this.playersRepository         = playersRepository;
     this.gameRoundsRepository      = gameRoundsRepository;
     this.playerCardsRepository     = playerCardsRepository;
     this.questionCardsRepository   = questionCardsRepository;
     this.playerAnswersRepository   = playerAnswersRepository;
 }
예제 #4
0
 public SubmitAnswerHandler(
     IRequestValidator<SubmitAnswer> requestValidator,
     IRepositoryTransactionsFactory repositoryTransactionsFactory,
     IPlayerAnswersRepository playerAnswerRepository,
     IGameCheckpointUpdater gameCheckpointUpdater,
     IPlayersRepository playersRepository,
     IPlayerCardsRepository playerCardsRepository)
 {
     this.requestValidator = requestValidator;
     this.repositoryTransactionsFactory = repositoryTransactionsFactory;
     this.playerAnswerRepository = playerAnswerRepository;
     this.gameCheckpointUpdater = gameCheckpointUpdater;
     this.playersRepository = playersRepository;
     this.playerCardsRepository = playerCardsRepository;
 }
예제 #5
0
 public SelectAnswerHandler(
     IRequestValidator <SelectAnswer> requestValidator,
     IRepositoryTransactionsFactory repositoryTransactionsFactory,
     IGameRoundsRepository gameRoundsRepository,
     IGamesRepository gamesRepository,
     IPlayerAnswersRepository playerAnswersRepository,
     IPlayerCardsCreator playerCardsCreator,
     IGameRoundCreator gameRoundCreator,
     IGameCheckpointUpdater gameCheckpointUpdater)
 {
     this.requestValidator = requestValidator;
     this.repositoryTransactionsFactory = repositoryTransactionsFactory;
     this.gameRoundsRepository          = gameRoundsRepository;
     this.gamesRepository         = gamesRepository;
     this.playerAnswersRepository = playerAnswersRepository;
     this.playerCardsCreator      = playerCardsCreator;
     this.gameRoundCreator        = gameRoundCreator;
     this.gameCheckpointUpdater   = gameCheckpointUpdater;
 }