Example #1
0
 public CalculationController(ITeamsRepository teamsRepo, IActivityRepository activityRepo,
                              IRankingsRepository rankingRepo, IPositionsRepository positionsRepo, IEstimatedRankingRepository estimatedRepo)
 {
     _teamsRepository            = teamsRepo;
     _activityRepository         = activityRepo;
     _rankingRepository          = rankingRepo;
     _positionsRepository        = positionsRepo;
     _estimatedRankingRepository = estimatedRepo;
     allTeams = teamsRepo.AsQueryable().ToArray();
 }
Example #2
0
 public TeamsController(ITeamsRepository teamsRepo, IActivityRepository activityRepo,
                        IRankingsRepository rankingRepo, IPositionsRepository positionsRepo, IEstimatedRankingRepository estimatedRepo)
 {
     _teamsRepository     = teamsRepo;
     _activityRepository  = activityRepo;
     _rankingRepository   = rankingRepo;
     _positionsRepository = positionsRepo;
     teamCalc             = new TeamCalculations(_teamsRepository, _activityRepository,
                                                 _rankingRepository, _positionsRepository, estimatedRepo, null);
 }
Example #3
0
 public SeasonCalculations(Season season, ITeamsRepository teamsRepo, IActivityRepository activityRepo,
                           IRankingsRepository rankingRepo, IPositionsRepository positionsRepo, IEstimatedRankingRepository estimatedRepo)
 {
     allTeams                    = teamsRepo.AsQueryable().ToArray();
     _activityRepository         = activityRepo;
     _rankingRepository          = rankingRepo;
     _positionsRepository        = positionsRepo;
     _estimatedRankingRepository = estimatedRepo;
     _currentSeason              = season;
 }
Example #4
0
 public TeamCalculations(ITeamsRepository teamsRepo, IActivityRepository activityRepo,
                         IRankingsRepository rankingRepo, IPositionsRepository positionsRepo, IEstimatedRankingRepository estimatedRepo, Teams team)
 {
     _teamsRepository            = teamsRepo;
     _activityRepository         = activityRepo;
     _rankingRepository          = rankingRepo;
     _positionsRepository        = positionsRepo;
     _estimatedRankingRepository = estimatedRepo;
     _team = team;
 }
 public UsersService(IUsersRepository repo, IRankingsRepository rankings)
 {
     _repo     = repo;
     _rankings = rankings;
 }
 public RankingsController(IRankingsRepository rankingsRepository)
 {
     this.rankingsRepository = rankingsRepository;
 }
 public RankingsService(IRankingsRepository repo)
 {
     _repo = repo;
 }