예제 #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;
 }
예제 #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);
        }
예제 #3
0
 public ScheduleGameService(IScheduleGameRepository repo)
 {
     scheduleGameRepository = repo;
     gameMapper             = new GameSummaryMapper();
 }