Exemple #1
0
 public AnswerCommand(IUserAnswerRepository userAnswerRepository, IDbRepository <Answer> answerRepository,
                      NextQuestionCommand nextQuestionCommand, ILogger <AnswerCommand> logger)
 {
     _userAnswerRepository = userAnswerRepository;
     _answerRepository     = answerRepository;
     _nextQuestionCommand  = nextQuestionCommand;
     _logger = logger;
 }
 public PlayGameCommand(NextQuestionCommand nextQuestionCommand,
                        ILogger <PlayGameCommand> logger,
                        IDbRepository <Models.User> usersRepository,
                        IUserRegistrationService registrationService, IMessageSender messageSender)
 {
     _nextQuestionCommand = nextQuestionCommand;
     _logger              = logger;
     _usersRepository     = usersRepository;
     _registrationService = registrationService;
     _messageSender       = messageSender;
 }