Beispiel #1
0
 public LeaguesController(ILeagueRepository leagueRepository,
                          IMlbDraftRepository mlbDraftRepository,
                          IMapper mapper,
                          ILogger <LeaguesController> logger)
 {
     _leagueRepository   = leagueRepository;
     _mlbDraftRepository = mlbDraftRepository;
     _mapper             = mapper;
     _logger             = logger;
 }
Beispiel #2
0
 public UsersController(IUserRepository userRepository,
                        IMlbDraftRepository mlbDraftRepository,
                        ILogger <UsersController> logger,
                        IMapper mapper)
 {
     _userRepository     = userRepository;
     _mlbDraftRepository = mlbDraftRepository;
     _logger             = logger;
     _mapper             = mapper;
 }
Beispiel #3
0
 public TeamsController(ITeamRepository teamRepository,
                        ILeagueRepository leagueRepository,
                        IUserRepository userRepository,
                        IMlbDraftRepository mlbDraftRepository,
                        IMapper mapper,
                        ILogger <TeamsController> logger)
 {
     _teamRepository     = teamRepository;
     _leagueRepository   = leagueRepository;
     _userRepository     = userRepository;
     _mlbDraftRepository = mlbDraftRepository;
     _mapper             = mapper;
     _logger             = logger;
 }
Beispiel #4
0
 public PlayersController(IPlayerRepository playerRepository,
                          IMlbTeamRepository mlbTeamRepository,
                          IMlbDraftRepository mlbDraftRepository,
                          IPositionRepository positionRepository,
                          IMapper mapper,
                          ILogger <PlayersController> logger,
                          IUrlHelper urlHelper)
 {
     _playerRepository   = playerRepository;
     _mlbTeamRepository  = mlbTeamRepository;
     _positionRepository = positionRepository;
     _mlbDraftRepository = mlbDraftRepository;
     _mapper             = mapper;
     _logger             = logger;
     _urlHelper          = urlHelper;
 }
 public DraftTeamRostersController(
     IDraftSelectionRepository draftSelectionRepository,
     IDraftTeamRosterRepository draftTeamRosterRepository,
     IDraftRepository draftRepository,
     ILeagueRepository leagueRepository,
     IMlbDraftRepository mlbDraftRepository,
     IMapper mapper,
     ILogger <DraftTeamRostersController> logger)
 {
     _draftSelectionRepository  = draftSelectionRepository;
     _draftTeamRosterRepository = draftTeamRosterRepository;
     _draftRepository           = draftRepository;
     _leagueRepository          = leagueRepository;
     _mlbDraftRepository        = mlbDraftRepository;
     _mapper = mapper;
     _logger = logger;
 }
Beispiel #6
0
 public AccountController(
     IUserRepository userRepository,
     IMlbDraftRepository mlbDraftRepository,
     ILogger <AccountController> logger,
     ITokenGenerator tokenGenerator,
     SignInManager <MlbDraftUser> signInMgr,
     UserManager <MlbDraftUser> userMgr,
     IPasswordHasher <MlbDraftUser> hasher,
     IMapper mapper)
 {
     _userRepository     = userRepository;
     _mlbDraftRepository = mlbDraftRepository;
     _logger             = logger;
     _tokenGenerator     = tokenGenerator;
     _signInMgr          = signInMgr;
     _userMgr            = userMgr;
     _hasher             = hasher;
     _mapper             = mapper;
 }
Beispiel #7
0
 public DraftsController(MLBDraftContext context,
                         IDraftRepository draftRepository,
                         IDraftSelectionRepository draftSelectionRepository,
                         IDraftTeamRosterRepository draftTeamRosterRepository,
                         ILeagueRepository leagueRepository,
                         IPlayerRepository playerRepository,
                         IMlbDraftRepository mlbDraftRepository,
                         IMapper mapper,
                         ILogger <LeaguesController> logger)
 {
     _context                   = context;
     _draftRepository           = draftRepository;
     _draftSelectionRepository  = draftSelectionRepository;
     _draftTeamRosterRepository = draftTeamRosterRepository;
     _leagueRepository          = leagueRepository;
     _playerRepository          = playerRepository;
     _mlbDraftRepository        = mlbDraftRepository;
     _mapper = mapper;
     _logger = logger;
 }