public StandingsServices(IStandingsRepository standingsRepository,
                          IMatchRepository matchRepository,
                          IMatchStatisticsRepository matchStatisticsRepository)
 {
     _standingsRepository       = standingsRepository;
     _matchRepository           = matchRepository;
     _matchStatisticsRepository = matchStatisticsRepository;
 }
Example #2
0
 public MatchServices(IMatchRepository matchRepository,
                      IRepository <Team> repository,
                      IPlayerRepository playerRepository,
                      IRepository <MatchStatistics> statisticsRepository,
                      IStandingsRepository standingsRepository)
 {
     _matchRepository      = matchRepository;
     _repository           = repository;
     _playerRepository     = playerRepository;
     _statisticsRepository = statisticsRepository;
     _standingsRepository  = standingsRepository;
 }
Example #3
0
        public TeamApplication()
        {
            leagueRepository            = new LeagueRepository(new RepositoryNHibernate <League>());
            teamRepository              = new TeamRepository(new RepositoryNHibernate <Team>());
            competitionRepository       = new CompetitionRepository(new RepositoryNHibernate <Competition>());
            standingsRepository         = new StandingsRepository(new RepositoryNHibernate <SeasonTeam>(), competitionRepository);
            teamRankingRepository       = new TeamRankingRepository(new RepositoryNHibernate <TeamRanking>());
            scheduleGameRepository      = new ScheduleGameRepository(new RepositoryNHibernate <ScheduleGame>());
            gameDataRepository          = new GameDataRepository(new RepositoryNHibernate <GameData>());
            competitionConfigRepository = new CompetitionConfigRepository(new RepositoryNHibernate <CompetitionConfig>());
            seasonRepository            = new SeasonRepository(new RepositoryNHibernate <Season>());
            competitionTeamRepository   = new CompetitionTeamRepository(new RepositoryNHibernate <CompetitionTeam>());

            LeagueService       = new LeagueService(leagueRepository);
            StandingsService    = new StandingsService(standingsRepository, competitionRepository);
            TeamService         = new TeamService(teamRepository);
            GameDataService     = new GameDataService(gameDataRepository, leagueRepository, scheduleGameRepository, competitionRepository, competitionConfigRepository, TeamService, CompetitionService);
            ScheduleGameService = new ScheduleGameService(scheduleGameRepository);
            CompetitionService  = new CompetitionService(competitionRepository);
            PlayoffService      = new PlayoffService(competitionRepository);
        }
 public StandingsController(IStandingsRepository standingsRepository, ILoggerFactory factory)
 {
     Logger = factory.CreateLogger("StandingsController");
     StandingsRepository = standingsRepository;
 }
Example #5
0
 public MatchRespository(BundesligaContext context,
                         IStandingsRepository standingsRepository) : base(context)
 {
     _standingRepository = standingsRepository;
 }
Example #6
0
 public StandingsService(IStandingsRepository StandingsRepository, ICompetitionRepository CompetitionRepository)
 {
     standingsRepository   = StandingsRepository;
     competitionRepository = CompetitionRepository;
     mapper = new SeasonTeamToStandingsTeamViewModelMapper();
 }
Example #7
0
 public StandingsService(IStandingsRepository repository)
 {
     this.repository = repository;
 }