예제 #1
0
 public TournamentsManager(ITeamsRepository teamsRepository, IGamesRepository gamesRepository, IEventsRepository eventsRepository, TournamentsMapper tournamentsMapper, ILeaguesRepository leaguesRepository)
 {
     _teamsRepository = teamsRepository;
     _gamesRepository = gamesRepository;
     _eventsRepository = eventsRepository;
     _tournamentsMapper = tournamentsMapper;
     _leaguesRepository = leaguesRepository;
 }
예제 #2
0
 public GamesManager(IGamesRepository gamesRepository, IPlayersRepository playersRepository, GamesMapper gameMapper, ITeamsRepository teamsRepository, IEventsRepository eventsRepository)
 {
     _gamesRepository = gamesRepository;
     _playersRepository = playersRepository;
     _gameMapper = gameMapper;
     _teamsRepository = teamsRepository;
     _eventsRepository = eventsRepository;
 }
예제 #3
0
 public TeamsManager(ITeamsRepository teamsRepository, IPlayersRepository playersRepository, IGamesRepository gamesRepository, ILeaguesRepository leaguesRepository, TeamsMapper teamMapper, IEventsRepository eventsRepository)
 {
     _teamsRepository = teamsRepository;
     _playersRepository = playersRepository;
     _gamesRepository = gamesRepository;
     _leaguesRepository = leaguesRepository;
     _teamMapper = teamMapper;
     _eventsRepository = eventsRepository;
 }
예제 #4
0
 public LeaguesManager(ILeaguesRepository leaguesRepository, ITeamsRepository teamsRepository, IGamesRepository gamesRepository, IPlayersRepository playersRepository, IUsersRepository usersRepository, TeamsMapper teamMapper, UserStatisticCalculation userStatisticCalculation, LeaguesMapper leaguesMapper, IEventsRepository eventsRepository)
 {
     _leaguesRepository = leaguesRepository;
     _teamsRepository = teamsRepository;
     _gamesRepository = gamesRepository;
     _playersRepository = playersRepository;
     _usersRepository = usersRepository;
     _teamMapper = teamMapper;
     _userStatisticCalculation = userStatisticCalculation;
     _leaguesMapper = leaguesMapper;
     _eventsRepository = eventsRepository;
 }
예제 #5
0
        private BetValidator CreateTarget(IGamesRepository gamesRepository, IBetsRepository betsRepository, IDateTimeProvider dateTimeProvider)
        {
            var actionLogsRepository = new Mock <IActionLogsRepository>();

            return(new BetValidator(gamesRepository, betsRepository, dateTimeProvider, actionLogsRepository.Object));
        }
예제 #6
0
 public GameOwnerRule(
     IGamesRepository gamesRepository)
 {
     this.gamesRepository = gamesRepository;
 }
예제 #7
0
 public GamesService(IGamesRepository gamesRepository)
 {
     _gamesRepository = gamesRepository;
 }
예제 #8
0
 public CreateGameHandler(IGamesRepository gamesRepository,
                          IUnitOfWork unitOfWork)
 {
     _gamesRepository = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
     _unitOfWork      = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
예제 #9
0
 public NavigationMenuViewComponent(IGamesRepository repo)
 {
     repository = repo;
 }
 public MoveController(IGamesRepository gamesRepository, IMovesRepository moveRepository, IServiceBus serviceBus)
 {
     this.gamesRepository = gamesRepository;
     this.moveRepository  = moveRepository;
     this.serviceBus      = serviceBus;
 }
예제 #11
0
        public BetsController(IBetsRepository betsRepository, IBetValidator betValidator, ILoggedUserProvider userProivider, IDateTimeProvider dateTimeProvider, IActionLogsRepository actionLogsRepository, IGamesRepository gamesRepository)
        {
            userManager = new UserManager <MundialitoUser>(new UserStore <MundialitoUser>(new MundialitoContext()));
            if (gamesRepository == null)
            {
                throw new ArgumentNullException("gamesRepository");
            }
            this.gamesRepository = gamesRepository;

            if (betsRepository == null)
            {
                throw new ArgumentNullException("betsRepository");
            }
            this.betsRepository = betsRepository;

            if (betValidator == null)
            {
                throw new ArgumentNullException("betValidator");
            }
            this.betValidator = betValidator;

            if (userProivider == null)
            {
                throw new ArgumentNullException("userProivider");
            }
            this.userProivider = userProivider;

            if (dateTimeProvider == null)
            {
                throw new ArgumentNullException("dateTimeProvider");
            }
            this.dateTimeProvider = dateTimeProvider;

            if (actionLogsRepository == null)
            {
                throw new ArgumentNullException("actionLogsRepository");
            }
            this.actionLogsRepository = actionLogsRepository;
        }
예제 #12
0
 public GamesController(IGamesRepository repository)
 {
     this.respository = repository;
 }
예제 #13
0
 public ReviewGameController(ILogger <HomeController> logger, IGamesRepository gamesRepository)
 {
     Logger          = logger;
     GamesRepository = gamesRepository;
 }
예제 #14
0
 public ReviewsController(Context context, IGamesRepository gamesRepository, ILogger <ReviewsController> logger)
 {
     _context         = context;
     _gamesRepository = gamesRepository;
     _logger          = logger;
 }
 public GamesController()
 {
     this.db = new EFGamesRepository();
 }
예제 #16
0
 public SpecificGameController(IGamesRepository gamesRepository)
 {
     GamesRepository = gamesRepository;
 }
예제 #17
0
 public GamesController(IGamesRepository gameRepository, IMapper mapper)
 {
     this.gameRepository = gameRepository ?? throw new ArgumentNullException("Game Repository cannot be null");
     this.mapper         = mapper ?? throw new ArgumentNullException("Mapper cannot be null");
 }
 public ResignGameCommandHandler(IGamesRepository gamesRepository, IServiceBus serviceBus)
 {
     this.gamesRepository = gamesRepository;
     this.serviceBus      = serviceBus;
 }
예제 #19
0
 public ControlGame(int maxNameSize, int validYear)
 {
     MaxNameSize  = maxNameSize;
     _repository  = new GamesRepository();
     MinValidYear = validYear;
 }
예제 #20
0
 public GamesController(IGamesRepository gamesRepository)
 {
     GamesRepository = gamesRepository;
 }
 public GamesController(IGamesRepository db)
 {
     this.db = db;
 }
 /// <summary>
 /// konstruktor parametryczny wykorzystujący wstrzykiwanie zależności
 /// </summary>
 /// <param name="clientsRepository"></param>
 public AccountController(IClientsRepository clientsRepository, IOrdersRepository ordersRepository, IGamesRepository gamesRepository)
 {
     _clientsRepository = clientsRepository;
     _ordersRepository  = ordersRepository;
     _gamesRepository   = gamesRepository;
 }
예제 #23
0
 public GamesV2Controller(
     IGamesRepository gamesRepository, ILogger <GamesV2Controller> logger)
 {
     _gamesRepository = gamesRepository;
     _logger          = logger;
 }
예제 #24
0
 public static void TestSetup(TestContext context)
 {
     _repositoryStub = new GameRepositoryStub();
     _sut            = new GamesController(_repositoryStub);
 }
예제 #25
0
 public GamesService(IGamesRepository gamesRepository)
 {
     this.gamesRepository = gamesRepository;
 }
예제 #26
0
 public DeleteGame(IGamesRepository gamesRepository,
                   IVenuesRepository venuesRepository)
 {
     _gamesRepository  = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
     _venuesRepository = venuesRepository ?? throw new ArgumentNullException(nameof(venuesRepository));
 }
예제 #27
0
 public PlayersRepository(GoTGameContextDb context, IGoTStorage storage, IGamesRepository gamesRepo)
     : base(context, storage)
 {
     gamesRepository = gamesRepo;
 }
예제 #28
0
 public CartController(IGamesRepository repo, Cart cartService)
 {
     repository = repo;
     cart       = cartService;
 }
 public HomeController(IGamesRepository repo)
 {
     repository = repo;
 }
예제 #30
0
 public GamesController(IGamesRepository repository)
 {
     _repository = repository;
 }
 public GamesController(IMapper mapper, IGamesRepository repo)
 {
     _mapper = mapper;
     _repo   = repo;
 }
        private readonly GameToGameReportMapper _gameToGameReportMapper; //te permite convertir de la clase game a gamereportMapper

        public GamesQueryService(IGamesRepository gamesRepository,
                                 GameToGameReportMapper gameToGameReportMapper)
        {
            _gamesRepository        = gamesRepository;
            _gameToGameReportMapper = gameToGameReportMapper;
        }
예제 #33
0
 public GamesService(IGamesRepository repository)
 {
     _repository = repository;
 }
        private GamesController CreateController(IGamesRepository gamesRepository, IBetsRepository betsRepository, IBetsResolver betsResolver, ILoggedUserProvider userProvider, IDateTimeProvider dateTimeProvider)
        {
            var actionLogsRepository = new Mock <IActionLogsRepository>();

            return(new GamesController(gamesRepository, betsRepository, betsResolver, userProvider, dateTimeProvider, actionLogsRepository.Object));
        }
예제 #35
0
 public ChangeName(IGamesRepository gamesRepository)
 {
     _gamesRepository = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
 }
예제 #36
0
 public GamesManager(IGamesRepository gamesRepository)
 {
     this.repository = gamesRepository;
 }
예제 #37
0
 public GamesController(IGamesRepository repo)
 {
     repository = repo;
 }
예제 #38
0
        public FantasyDataGamesImportService(string apiKey, IGamesImportRepository gamesImportRepository, IGamesRepository gamesRepository)
        {
            if (apiKey == null)
            {
                throw new ArgumentNullException(nameof(apiKey));
            }

            _apiKey = apiKey;
            _gamesImportRepository = gamesImportRepository;
            _gamesRepository = gamesRepository;
        }