コード例 #1
0
 public LeaguesController(ApplicationDbContext context, UserManager <ApplicationUser> userManager,
                          ILeaguesRepository leaguesRepository)
 {
     _context           = context;
     _userManager       = userManager;
     _leaguesRepository = leaguesRepository;
 }
コード例 #2
0
 public TournamentsManager(ITeamsRepository teamsRepository, IGamesRepository gamesRepository, IEventsRepository eventsRepository, TournamentsMapper tournamentsMapper, ILeaguesRepository leaguesRepository)
 {
     _teamsRepository = teamsRepository;
     _gamesRepository = gamesRepository;
     _eventsRepository = eventsRepository;
     _tournamentsMapper = tournamentsMapper;
     _leaguesRepository = leaguesRepository;
 }
コード例 #3
0
 public TeamsManager(ITeamsRepository teamsRepository, IPlayersRepository playersRepository, IGamesRepository gamesRepository, ILeaguesRepository leaguesRepository, TeamsMapper teamMapper, IEventsRepository eventsRepository)
 {
     _teamsRepository = teamsRepository;
     _playersRepository = playersRepository;
     _gamesRepository = gamesRepository;
     _leaguesRepository = leaguesRepository;
     _teamMapper = teamMapper;
     _eventsRepository = eventsRepository;
 }
コード例 #4
0
 public MatchesController(ApplicationDbContext context, UserManager <ApplicationUser> userManager,
                          IStringLocalizer <MatchesController> localizer, IInvitesService invitesService, ILeaguesRepository leaguesRepository)
 {
     _context           = context;
     _userManager       = userManager;
     _localizer         = localizer;
     _invitesService    = invitesService;
     _leaguesRepository = leaguesRepository;
 }
コード例 #5
0
 public LeaguesManager(ILeaguesRepository leaguesRepository, ITeamsRepository teamsRepository, IGamesRepository gamesRepository, IPlayersRepository playersRepository, IUsersRepository usersRepository, TeamsMapper teamMapper, UserStatisticCalculation userStatisticCalculation, LeaguesMapper leaguesMapper, IEventsRepository eventsRepository)
 {
     _leaguesRepository = leaguesRepository;
     _teamsRepository = teamsRepository;
     _gamesRepository = gamesRepository;
     _playersRepository = playersRepository;
     _usersRepository = usersRepository;
     _teamMapper = teamMapper;
     _userStatisticCalculation = userStatisticCalculation;
     _leaguesMapper = leaguesMapper;
     _eventsRepository = eventsRepository;
 }
コード例 #6
0
 public LeagueController(ILeaguesRepository leaguesRepository, ILoggerFactory loggerFactory)
 {
     LeaguesRepository = leaguesRepository;
     Logger            = loggerFactory.CreateLogger("LeagueController");
 }