public PlayerController(IPlayerService playerService, IChallengeService challengeService, ITournamentMatchService tournamentMatchService)
        {
            _playerService = playerService;
            _challengeService = challengeService;
            _tournamentMatchService = tournamentMatchService;

            ViewData[Constants.ViewData.PageTitle] = Constants.Pages.PageTitlePlayers;
        }
 public ChallengeController(
     IConfiguration config,
     IChallengeService challengeService,
     IUserService userService
     )
 {
     _appSettings      = config;
     _challengeService = challengeService;
     _userService      = userService;
 }
Example #3
0
 public GameGrpcService(
     IChallengeService challengeService,
     IGameCredentialService gameCredentialService,
     IMapper mapper,
     ILogger <GameGrpcService> logger
     )
 {
     _challengeService      = challengeService;
     _gameCredentialService = gameCredentialService;
     _mapper = mapper;
     _logger = logger;
 }
Example #4
0
        public ChallengeCreateValidator(IChallengeService challengeService)
        {
            CascadeMode = CascadeMode.StopOnFirstFailure;

            RuleFor(cc => cc.Name)
            .NotEmpty().WithMessage("{PropertyName} is empty")
            .Length(3, 50).WithMessage("Have to contains between 3 to 50 characters !")
            .MustAsync(async(name, cancellation) => !(await challengeService.ExistName(name)))
            .WithMessage("{PropertyValue} is already taken !");
            RuleFor(cc => cc.Statement)
            .NotEmpty().WithMessage("{PropertyName} is empty")
            .Length(10, 100).WithMessage("Have to contains between 10 to 100 characters !");
        }
 public WorkoutController(ILoggerFactory logger,
                          IMapper mapper,
                          IWorkoutService workoutService,
                          IExerciseService exerciseService,
                          UserManager <User> userManager,
                          IWorkoutRepository workoutRepository,
                          IChallengeService challengeService)
 {
     _logger            = logger.CreateLogger <WorkoutController>();
     _mapper            = mapper;
     _workoutService    = workoutService;
     _exerciseService   = exerciseService;
     _userManager       = userManager;
     _workoutRepository = workoutRepository;
     _challengeService  = challengeService;
 }
 public AccountController(
     IRoutinizeAccountLogService accountLogService,
     IAccountService accountService,
     IChallengeService challengeService,
     IAssistantService assistantService,
     IEmailSenderService emailSenderService,
     ITwoFactorAuthService tfaService,
     IGoogleRecaptchaService recaptchaService
     )
 {
     _accountLogService  = accountLogService;
     _accountService     = accountService;
     _challengeService   = challengeService;
     _assistantService   = assistantService;
     _emailSenderService = emailSenderService;
     _tfaService         = tfaService;
     _recaptchaService   = recaptchaService;
 }
 public TournamentController(IPlayerService playerService, IChallengeService challengeService, ITournamentService tournamentService)
 {
     _playerService = playerService;
     _challengeService = challengeService;
     _tournamentService = tournamentService;
 }
 public ChallengeSynchronizedIntegrationEventHandler(IChallengeService challengeService, ILogger <ChallengeSynchronizedIntegrationEventHandler> logger)
 {
     _challengeService = challengeService;
     _logger           = logger;
 }
Example #9
0
 public ChallengeController(ILogger <LocationController> logger, IChallengeService challengeService)
 {
     _logger           = logger;
     _challengeService = challengeService;
 }
 public SessionController(IQuestionService questionService, ISessionService sessionService, IChallengeService challengeService, ICategoryService categoryService)
 {
     _questionService  = questionService;
     _sessionService   = sessionService;
     _challengeService = challengeService;
     _categoryService  = categoryService;
 }
Example #11
0
 public ChallengeServiceFixture()
 {
     RestClient        = new Mock <IRestClient>();
     MockStorageHelper = new Mock <IStorageHelper>();
     ChallengeService  = new ChallengeService(RestClient.Object);
 }
 public ChallengeController(IChallengeService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
     _serviceConvertToListDTO = new ConvertToListDTO <Models.Challenge, ChallengeDTO>(mapper);
 }
Example #13
0
 public ChallengeHandler(IAccountRepository accountRepository, IChallengeService challengeService)
 {
     _accountRepository = accountRepository;
     _challengeService  = challengeService;
 }