public GamePickController(IGamePickService gamePickService, IGamePickRepository gamePickRepository, IMapper mapper, ILogger <GamePickController> logger)
 {
     _gamePickService    = gamePickService;
     _gamePickRepository = gamePickRepository;
     _mapper             = mapper;
     _logger             = logger;
 }
Beispiel #2
0
 public GameService(IGameRepository gamerepository, IUserRepository userRepository,
                    IGamePickService gamePickService, ITeamRepository teamRepository, IMapper mapper)
 {
     _gameRepository  = gamerepository;
     _userRepository  = userRepository;
     _teamRepository  = teamRepository;
     _gamePickService = gamePickService;
     _mapper          = mapper;
 }
Beispiel #3
0
        public ScoreSummaryServiceTests()
        {
            var serviceProvider = ServiceHelper.BuildUnitTestServices("scoreSummaryTests");

            _userRepository      = serviceProvider.GetRequiredService <IUserRepository>();
            _gameRepository      = serviceProvider.GetRequiredService <IGameRepository>();
            _gamePickService     = serviceProvider.GetRequiredService <IGamePickService>();
            _scoreSummaryService = serviceProvider.GetRequiredService <IScoreSummaryService>();
            _mapper = serviceProvider.GetRequiredService <IMapper>();
        }
        public GamePickServiceTests()
        {
            var serviceProvider = ServiceHelper.BuildUnitTestServices("gamePickTests");

            _userRepository     = serviceProvider.GetRequiredService <IUserRepository>();
            _gameRepository     = serviceProvider.GetRequiredService <IGameRepository>();
            _gamePickRepository = serviceProvider.GetRequiredService <IGamePickRepository>();
            _gameService        = serviceProvider.GetRequiredService <IGameService>();
            _gamePickService    = serviceProvider.GetRequiredService <IGamePickService>();
        }