コード例 #1
0
 public MatchSimulator(ILogger <MatchSimulator> logger, IMatchEventService matchEventService)
 {
     _logger            = logger;
     _matchEventService = matchEventService;
     //ok, normally we shouldn't do heavy stuff in the constructor
     _eventsRandomizer = GetEvents();
 }
コード例 #2
0
ファイル: MatchController.cs プロジェクト: srog/FMS_Mvc
 public MatchController(IMatchService matchService,
                        IMatchEventService matchEventService,
                        IMatchGoalService matchGoalService,
                        ITeamSeasonService teamSeasonService)
 {
     _matchService      = matchService;
     _matchEventService = matchEventService;
     _matchGoalService  = matchGoalService;
     _teamSeasonService = teamSeasonService;
 }
コード例 #3
0
ファイル: MatchService.cs プロジェクト: srog/FMS_Mvc
 public MatchService(IPlayerService playerService,
                     IMatchQuery matchQuery,
                     IMatchGoalService matchGoalService,
                     IMatchEventService matchEventService,
                     IPlayerStatsService playerStatsService,
                     INewsService newsService,
                     ITeamService teamService)
 {
     _matchGoalService   = matchGoalService;
     _playerService      = playerService;
     _matchQuery         = matchQuery;
     _playerStatsService = playerStatsService;
     _matchEventService  = matchEventService;
     _newsService        = newsService;
     _teamService        = teamService;
 }
コード例 #4
0
 public MatchCardsDisplayViewComponent(IMatchEventService matchEventService, IPlayerService playerService)
 {
     _matchEventService = matchEventService;
     _playerService     = playerService;
 }
コード例 #5
0
 public MatchEventController(IMatchEventService matchEventService)
 {
     _matchEventService = matchEventService;
 }
コード例 #6
0
 public MatchEventServiceTests()
 {
     _matchEventRepository = new Mock <IMatchEventRepository>();
     _matchEventService    = new MatchEventService(_matchEventRepository.Object);
 }