Ejemplo n.º 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();
 }
Ejemplo n.º 2
0
 public MatchController(IMatchService matchService,
                        IMatchEventService matchEventService,
                        IMatchGoalService matchGoalService,
                        ITeamSeasonService teamSeasonService)
 {
     _matchService      = matchService;
     _matchEventService = matchEventService;
     _matchGoalService  = matchGoalService;
     _teamSeasonService = teamSeasonService;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public MatchCardsDisplayViewComponent(IMatchEventService matchEventService, IPlayerService playerService)
 {
     _matchEventService = matchEventService;
     _playerService     = playerService;
 }
Ejemplo n.º 5
0
 public MatchEventController(IMatchEventService matchEventService)
 {
     _matchEventService = matchEventService;
 }
 public MatchEventServiceTests()
 {
     _matchEventRepository = new Mock <IMatchEventRepository>();
     _matchEventService    = new MatchEventService(_matchEventRepository.Object);
 }