コード例 #1
0
ファイル: TeamApplication.cs プロジェクト: jodyunter/TeamApp
        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);
        }
コード例 #2
0
 public SeasonRankingController(ISeasonRankingRepository seasonRankingRepository, ITeamRankingRepository teamRankingRepository)
 {
     _seasonRankingRepository = seasonRankingRepository;
     _teamRankingRepository   = teamRankingRepository;
 }
コード例 #3
0
 public TeamRankingController(ITeamRankingRepository teamRankingRepository)
 {
     _teamRankingRepository = teamRankingRepository;
 }