コード例 #1
0
 public MatchController(
     IMatchService matchService,
     IMatchResultService matchResultService)
 {
     this.matchService       = matchService;
     this.matchResultService = matchResultService;
 }
コード例 #2
0
 public PenaltiesController(IPenaltyService penaltyService,
     ILeagueService leagueService,
     ITeamService teamService,
     IMatchResultService matchResultService)
 {
     this.penaltyService = penaltyService;
     this.leagueService = leagueService;
     this.teamService = teamService;
     this.matchResultService = matchResultService;
 }
コード例 #3
0
 public PenaltiesController(IPenaltyService penaltyService,
                            ILeagueService leagueService,
                            ITeamService teamService,
                            IMatchResultService matchResultService)
 {
     this.penaltyService     = penaltyService;
     this.leagueService      = leagueService;
     this.teamService        = teamService;
     this.matchResultService = matchResultService;
 }
コード例 #4
0
 public MatchResultsController(
     IMatchResultRepository matchResultRepository,
     IMatchResultService matchResultService,
     IMemberRepository memberRepository,
     IMapper mapper,
     ILoggerFactory loggerFactory)
 {
     _matchResultRepository = matchResultRepository;
     _matchResultService    = matchResultService;
     _memberRepository      = memberRepository;
     _mapper     = mapper;
     _logger     = loggerFactory.CreateLogger <MatchResultsController>();
     base.Logger = _logger;
 }
コード例 #5
0
        public ScheduledTaskController(IOptionService optionService,
            IFixtureService fixtureService,
            IPenaltyService penaltyService,
            ICompetitionService competitionService,
            IMatchResultService matchResultService)
        {
            Check.Require(optionService      != null, "optionService may not be null");
            Check.Require(fixtureService     != null, "fixtureService may not be null");
            Check.Require(penaltyService     != null, "penaltyService may not be null");
            Check.Require(competitionService != null, "competitionService may not be null");
            Check.Require(matchResultService != null, "statsService may not be null");

            this.optionService      = optionService;
            this.fixtureService     = fixtureService;
            this.penaltyService     = penaltyService;
            this.competitionService = competitionService;
            this.matchResultService = matchResultService;
        }
コード例 #6
0
        public ScheduledTaskController(IOptionService optionService,
                                       IFixtureService fixtureService,
                                       IPenaltyService penaltyService,
                                       ICompetitionService competitionService,
                                       IMatchResultService matchResultService)
        {
            Check.Require(optionService != null, "optionService may not be null");
            Check.Require(fixtureService != null, "fixtureService may not be null");
            Check.Require(penaltyService != null, "penaltyService may not be null");
            Check.Require(competitionService != null, "competitionService may not be null");
            Check.Require(matchResultService != null, "statsService may not be null");

            this.optionService      = optionService;
            this.fixtureService     = fixtureService;
            this.penaltyService     = penaltyService;
            this.competitionService = competitionService;
            this.matchResultService = matchResultService;
        }
コード例 #7
0
        public MatchResultController(IFixtureService fixtureService,
                                     ICompetitionService competitionService,
                                     IMatchResultService matchResultService,
                                     IPlayerService playerService,
                                     IMembershipService membershipService,
                                     IStatsReportingService statsReportingService)
        {
            Check.Require(fixtureService != null, "fixtureService may not be null");
            Check.Require(competitionService != null, "competitionService may not be null");
            Check.Require(matchResultService != null, "statsService may not be null");
            Check.Require(playerService != null, "playerService may not be null");
            Check.Require(membershipService != null, "membershipService may not be null");
            Check.Require(statsReportingService != null, "statsService may not be null");

            this.fixtureService        = fixtureService;
            this.matchResultService    = matchResultService;
            this.playerService         = playerService;
            this.membershipService     = membershipService;
            this.statsReportingService = statsReportingService;
        }
コード例 #8
0
        public MatchResultController(IFixtureService fixtureService,
            ICompetitionService competitionService,
            IMatchResultService matchResultService,
            IPlayerService playerService,
            IMembershipService membershipService,
            IStatsReportingService statsReportingService)
        {
            Check.Require(fixtureService != null, "fixtureService may not be null");
            Check.Require(competitionService != null, "competitionService may not be null");
            Check.Require(matchResultService != null, "statsService may not be null");
            Check.Require(playerService != null, "playerService may not be null");
            Check.Require(membershipService != null, "membershipService may not be null");
            Check.Require(statsReportingService != null, "statsService may not be null");

            this.fixtureService     = fixtureService;
            this.matchResultService = matchResultService;
            this.playerService      = playerService;
            this.membershipService  = membershipService;
            this.statsReportingService       = statsReportingService;
        }
コード例 #9
0
        public void Setup()
        {
            mockMatchResultRepository            = Substitute.For<IMatchResultRepository>();;
            mockPlayerService                    = Substitute.For<IPlayerService>();
            mockFixtureService                   = Substitute.For<IFixtureService>();
            mockCompetitionService               = Substitute.For<ICompetitionService>();
            mockStatsReportingService            = Substitute.For<IStatsReportingService>();

            PopulateData();

            matchResultService = new MatchResultService(
                mockMatchResultRepository,
                mockPlayerService,
                mockCompetitionService,
                mockFixtureService,
                mockStatsReportingService);
        }