示例#1
0
 public TeamsController(ICompetitionService competitionService,
                        IStatsReportingService playerService,
                        ITeamService teamService)
 {
     this.competitionService    = competitionService;
     this.statsReportingService = playerService;
     this.teamService           = teamService;
 }
 public TeamsController(ICompetitionService competitionService,
     IStatsReportingService playerService,
     ITeamService teamService)
 {
     this.competitionService = competitionService;
     this.statsReportingService = playerService;
     this.teamService = teamService;
 }
 public TblDataService(INewsService newsService, IFixtureService fixtureService, ITeamService teamService, ICompetitionService competitionService, IStatsReportingService statsReportingService, IPlayerService playerService)
 {
     this.newsService           = newsService;
     this.fixtureService        = fixtureService;
     this.teamService           = teamService;
     this.competitionService    = competitionService;
     this.statsReportingService = statsReportingService;
     this.playerService         = playerService;
 }
 public TblDataService(INewsService newsService, IFixtureService fixtureService, ITeamService teamService, ICompetitionService competitionService, IStatsReportingService statsReportingService, IPlayerService playerService)
 {
     this.newsService        = newsService;
     this.fixtureService     = fixtureService;
     this.teamService        = teamService;
     this.competitionService = competitionService;
     this.statsReportingService       = statsReportingService;
     this.playerService      = playerService;
 }
 public StatsController(IStatsReportingService statsReportingService,
     ICompetitionService competitionService,
     IPlayerService playerService,
     IFixtureService fixtureService)
 {
     this.statsReportingService = statsReportingService;
     this.competitionService = competitionService;
     this.playerService = playerService;
     this.fixtureService = fixtureService;
 }
 public StatsController(IStatsReportingService statsReportingService,
                        ICompetitionService competitionService,
                        IPlayerService playerService,
                        IFixtureService fixtureService)
 {
     this.statsReportingService = statsReportingService;
     this.competitionService    = competitionService;
     this.playerService         = playerService;
     this.fixtureService        = fixtureService;
 }
 public MatchResultService(IMatchResultRepository matchResultRepository, 
     IPlayerService playerService,
     ICompetitionService competitionService,
     IFixtureService fixtureService,
     IStatsReportingService statsReportingService)
 {
     this.matchResultRepository          = matchResultRepository;
     this.playerService                  = playerService;
     this.competitionService             = competitionService;
     this.fixtureService                 = fixtureService;
     this.statsReportingService          = statsReportingService;
 }
 public MatchResultService(IMatchResultRepository matchResultRepository,
                           IPlayerService playerService,
                           ICompetitionService competitionService,
                           IFixtureService fixtureService,
                           IStatsReportingService statsReportingService)
 {
     this.matchResultRepository = matchResultRepository;
     this.playerService         = playerService;
     this.competitionService    = competitionService;
     this.fixtureService        = fixtureService;
     this.statsReportingService = statsReportingService;
 }
 public HomeController(INewsService newsService,
                       ICompetitionService competitionService,
                       IStatsReportingService statsReportingService,
                       IFixtureService fixtureService,
                       IEventService eventService,
                       ICupService cupService)
 {
     this.newsService           = newsService;
     this.competitionService    = competitionService;
     this.statsReportingService = statsReportingService;
     this.fixtureService        = fixtureService;
     this.eventService          = eventService;
     this.cupService            = cupService;
 }
 public HomeController(INewsService newsService,
     ICompetitionService competitionService,
     IStatsReportingService statsReportingService,
     IFixtureService fixtureService,
     IEventService eventService,
     ICupService cupService)
 {
     this.newsService           = newsService;
     this.competitionService    = competitionService;
     this.statsReportingService = statsReportingService;
     this.fixtureService        = fixtureService;
     this.eventService          = eventService;
     this.cupService            = cupService;
 }
        public void Setup()
        {
            this.mockStatsReportingRepository       = Substitute.For<IStatsReportingRepository>();
            mockCompetitionRepository = Substitute.For<ICompetitionRepository>();
            mockOptionService         = Substitute.For<IOptionService>();
            mockFixtureService        = Substitute.For<IFixtureService>();

            //PopulateData();

            statsService = new StatsReportingService(
                this.mockStatsReportingRepository,
                mockCompetitionRepository,
                mockOptionService,
                mockFixtureService);
        }
示例#12
0
        public void Setup()
        {
            this.mockStatsReportingRepository = Substitute.For <IStatsReportingRepository>();
            mockCompetitionRepository         = Substitute.For <ICompetitionRepository>();
            mockOptionService  = Substitute.For <IOptionService>();
            mockFixtureService = Substitute.For <IFixtureService>();

            //PopulateData();

            statsService = new StatsReportingService(
                this.mockStatsReportingRepository,
                mockCompetitionRepository,
                mockOptionService,
                mockFixtureService);
        }
        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;
        }
示例#15
0
 public void TearDown()
 {
     statsService = null;
 }
        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);
        }
 public void TearDown()
 {
     statsService = null;
 }
 public ViewCupController(ICupService cupService, IStatsReportingService statsReportingService, ICompetitionService competitionService)
 {
     this.cupService            = cupService;
     this.statsReportingService = statsReportingService;
     this.competitionService    = competitionService;
 }
 public ViewCupController(ICupService cupService, IStatsReportingService statsReportingService, ICompetitionService competitionService)
 {
     this.cupService            = cupService;
     this.statsReportingService = statsReportingService;
     this.competitionService    = competitionService;
 }