Esempio n. 1
0
 public ProtestController(IPlayedGamesService playedGamesService, UserManager <AppUser> userManager, IMapper mapper, IProtestService protestService, IProtestResponseService protestResponseService) : base(userManager)
 {
     _playedGamesService     = playedGamesService;
     _mapper                 = mapper;
     _protestService         = protestService;
     _protestResponseService = protestResponseService;
 }
Esempio n. 2
0
 public TournamentController(IMapper mapper, ITournamentService tournamentService, IPlayedGamesService playedGamesService, ITournamentTeamsService tournamentTeamsService, UserManager <AppUser> userManager) : base(userManager)
 {
     _mapper                 = mapper;
     _tournamentService      = tournamentService;
     _playedGamesService     = playedGamesService;
     _tournamentTeamsService = tournamentTeamsService;
 }
 public FixtureManager(List <TeamEntity> teams = null, int tournamentId = 0, ITournamentBracketRoundService tournamentBracketRoundService = null, IPlayedGamesService playedGamesService = null)
 {
     Teams        = teams;
     TournamentId = tournamentId;
     _tournamentBracketRoundService = tournamentBracketRoundService;
     _playedGamesService            = playedGamesService;
     gamesToBePlayed = new List <PlayedGamesEntity>();
     rounds          = new List <TournamentBracketRoundEntity>();
 }
 public CreateProtestValidator(ITeamService teamService, IPlayedGamesService playedGamesService)
 {
     _teamService        = teamService;
     _playedGamesService = playedGamesService;
     RuleFor(I => I.Text).NotEmpty().WithMessage("Text field is required.").MaximumLength(512);
     RuleFor(I => I.Title).NotEmpty().WithMessage("Title field is required.").MaximumLength(64);
     RuleFor(I => I).Must(I => IsUserOwner(I)).WithMessage("You are not owner of these teams.");
     RuleFor(I => I).Must(I => !IsGameFinished(I.PlayedGameId)).WithMessage("Game is already finished.");
 }
 public PlayedGamesController(IPlayedGamesService playedGamesService, IMapper mapper, UserManager <AppUser> userManager) : base(userManager)
 {
     _mapper             = mapper;
     _playedGamesService = playedGamesService;
 }
 public FixtureManager(IPlayedGamesService playedGamesService)
 {
     _playedGamesService = playedGamesService;
 }
Esempio n. 7
0
 public TournamentManager(ITournamentDAL tournamentDAL, ITournamentBracketRoundService tournamentBracketRoundService, IPlayedGamesService playedGamesService) : base(tournamentDAL)
 {
     _playedGamesService            = playedGamesService;
     _tournamentBracketRoundService = tournamentBracketRoundService;
     _tournamentDAL = tournamentDAL;
 }
Esempio n. 8
0
 public PlayedGamesController(IPlayedGamesService playedGamesService, IMapper mapper)
 {
     _mapper             = mapper;
     _playedGamesService = playedGamesService;
 }
Esempio n. 9
0
 public PlayedGameController(IPlayedGamesService service,
                             IDataSourceService dataSourceService)
 {
     this.service           = service;
     this.dataSourceService = dataSourceService;
 }