Beispiel #1
0
 public MatchController(
     IMatchService matchService,
     IMatchResultService matchResultService)
 {
     this.matchService       = matchService;
     this.matchResultService = matchResultService;
 }
 public PenaltiesController(IPenaltyService penaltyService,
     ILeagueService leagueService,
     ITeamService teamService,
     IMatchResultService matchResultService)
 {
     this.penaltyService = penaltyService;
     this.leagueService = leagueService;
     this.teamService = teamService;
     this.matchResultService = matchResultService;
 }
 public PenaltiesController(IPenaltyService penaltyService,
                            ILeagueService leagueService,
                            ITeamService teamService,
                            IMatchResultService matchResultService)
 {
     this.penaltyService     = penaltyService;
     this.leagueService      = leagueService;
     this.teamService        = teamService;
     this.matchResultService = matchResultService;
 }
Beispiel #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;
 }
        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;
        }
        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;
        }
        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;
        }
        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;
        }
        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);
        }