Exemple #1
0
 public GameDataService(IGameDataRepository gameDataRepository, ILeagueRepository leagueRepository, IScheduleGameRepository scheduleGameRepository, ICompetitionRepository competitionRepository, ICompetitionConfigRepository competitionConfigRepository, ITeamService teamServ, ICompetitionService compService)
 {
     gameDataRepo          = gameDataRepository;
     leagueRepo            = leagueRepository;
     scheduleGameRepo      = scheduleGameRepository;
     competitionRepo       = competitionRepository;
     competitionConfigRepo = competitionConfigRepository;
     teamService           = teamServ;
     competitionService    = compService;
 }
Exemple #2
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);
        }