public TournamentsManager(ITeamsRepository teamsRepository, IGamesRepository gamesRepository, IEventsRepository eventsRepository, TournamentsMapper tournamentsMapper, ILeaguesRepository leaguesRepository)
 {
     _teamsRepository = teamsRepository;
     _gamesRepository = gamesRepository;
     _eventsRepository = eventsRepository;
     _tournamentsMapper = tournamentsMapper;
     _leaguesRepository = leaguesRepository;
 }
Esempio n. 2
0
 public GamesManager(IGamesRepository gamesRepository, IPlayersRepository playersRepository, GamesMapper gameMapper, ITeamsRepository teamsRepository, IEventsRepository eventsRepository)
 {
     _gamesRepository = gamesRepository;
     _playersRepository = playersRepository;
     _gameMapper = gameMapper;
     _teamsRepository = teamsRepository;
     _eventsRepository = eventsRepository;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 5
0
        private BetValidator CreateTarget(IGamesRepository gamesRepository, IBetsRepository betsRepository, IDateTimeProvider dateTimeProvider)
        {
            var actionLogsRepository = new Mock <IActionLogsRepository>();

            return(new BetValidator(gamesRepository, betsRepository, dateTimeProvider, actionLogsRepository.Object));
        }
Esempio n. 6
0
 public GameOwnerRule(
     IGamesRepository gamesRepository)
 {
     this.gamesRepository = gamesRepository;
 }
Esempio n. 7
0
 public GamesService(IGamesRepository gamesRepository)
 {
     _gamesRepository = gamesRepository;
 }
Esempio n. 8
0
 public CreateGameHandler(IGamesRepository gamesRepository,
                          IUnitOfWork unitOfWork)
 {
     _gamesRepository = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
     _unitOfWork      = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
 }
Esempio n. 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;
 }
Esempio n. 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;
        }
Esempio n. 12
0
 public GamesController(IGamesRepository repository)
 {
     this.respository = repository;
 }
Esempio n. 13
0
 public ReviewGameController(ILogger <HomeController> logger, IGamesRepository gamesRepository)
 {
     Logger          = logger;
     GamesRepository = gamesRepository;
 }
Esempio n. 14
0
 public ReviewsController(Context context, IGamesRepository gamesRepository, ILogger <ReviewsController> logger)
 {
     _context         = context;
     _gamesRepository = gamesRepository;
     _logger          = logger;
 }
 public GamesController()
 {
     this.db = new EFGamesRepository();
 }
Esempio n. 16
0
 public SpecificGameController(IGamesRepository gamesRepository)
 {
     GamesRepository = gamesRepository;
 }
Esempio n. 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;
 }
Esempio n. 19
0
 public ControlGame(int maxNameSize, int validYear)
 {
     MaxNameSize  = maxNameSize;
     _repository  = new GamesRepository();
     MinValidYear = validYear;
 }
Esempio n. 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;
 }
Esempio n. 23
0
 public GamesV2Controller(
     IGamesRepository gamesRepository, ILogger <GamesV2Controller> logger)
 {
     _gamesRepository = gamesRepository;
     _logger          = logger;
 }
Esempio n. 24
0
 public static void TestSetup(TestContext context)
 {
     _repositoryStub = new GameRepositoryStub();
     _sut            = new GamesController(_repositoryStub);
 }
Esempio n. 25
0
 public GamesService(IGamesRepository gamesRepository)
 {
     this.gamesRepository = gamesRepository;
 }
Esempio n. 26
0
 public DeleteGame(IGamesRepository gamesRepository,
                   IVenuesRepository venuesRepository)
 {
     _gamesRepository  = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
     _venuesRepository = venuesRepository ?? throw new ArgumentNullException(nameof(venuesRepository));
 }
Esempio n. 27
0
 public PlayersRepository(GoTGameContextDb context, IGoTStorage storage, IGamesRepository gamesRepo)
     : base(context, storage)
 {
     gamesRepository = gamesRepo;
 }
Esempio n. 28
0
 public CartController(IGamesRepository repo, Cart cartService)
 {
     repository = repo;
     cart       = cartService;
 }
 public HomeController(IGamesRepository repo)
 {
     repository = repo;
 }
Esempio n. 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;
        }
Esempio n. 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));
        }
Esempio n. 35
0
 public ChangeName(IGamesRepository gamesRepository)
 {
     _gamesRepository = gamesRepository ?? throw new ArgumentNullException(nameof(gamesRepository));
 }
Esempio n. 36
0
 public GamesManager(IGamesRepository gamesRepository)
 {
     this.repository = gamesRepository;
 }
 public GamesController(IGamesRepository repo)
 {
     repository = repo;
 }
Esempio n. 38
0
        public FantasyDataGamesImportService(string apiKey, IGamesImportRepository gamesImportRepository, IGamesRepository gamesRepository)
        {
            if (apiKey == null)
            {
                throw new ArgumentNullException(nameof(apiKey));
            }

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