Esempio n. 1
0
        public void Index_DeleteFixture()
        {
            //Arrange
            IFixtureRepository sut     = GetInMemoryFixtureRepository();
            Fixture            fixture = new Fixture()
            {
                TeamID            = 1,
                FixtureID         = 1,
                FixtureDate       = DateTime.Parse("2020-01-01"),
                FixtureType       = FixtureType.Cup,
                Opponent          = "Leeds",
                ResultDescription = ResultDescription.Win,
                OurScore          = 3,
                OpponentScore     = 1,
                HomeOrAway        = HomeOrAway.Home,
                Location          = "Bushy Park",
                MeetLocation      = "Bushy Park Entrance",
                MeetTime          = DateTime.Parse("2020-01-01"),
                MatchReport       = "This was a good game.... "
            };

            //Act
            Fixture savedFixture  = sut.CreateFixture(fixture);
            Fixture savedFixture2 = sut.DeleteFixture(fixture);

            //Assert
            Assert.Empty(sut.AllFixtures);
        }
Esempio n. 2
0
 public TennisFixtureStrategy(IFixtureRepository fixtureRepository,
   ISqlLinqStoredProceduresRepository storedProcRepository, IWebRepositoryProvider webRepositoryProvider)
 {
   this.fixtureRepository = fixtureRepository;
   this.storedProcRepository = storedProcRepository;
   this.webRepositoryProvider = webRepositoryProvider;
 }
Esempio n. 3
0
        public AbstractAsyncOddsStrategy(Sport sport, IBookmakerRepository bookmakerRepository,
                                         IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
        {
            if (sport == null)
            {
                throw new ArgumentNullException("sport");
            }
            if (bookmakerRepository == null)
            {
                throw new ArgumentNullException("bookmakerRepository");
            }
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (webRepositoryProvider == null)
            {
                throw new ArgumentNullException("webRepository");
            }

            this.sport = sport;
            this.bookmakerRepository   = bookmakerRepository;
            this.fixtureRepository     = fixtureRepository;
            this.webRepositoryProvider = webRepositoryProvider;
        }
 public CompetitionEventController(ICompetitionRepository competitionRepository, ICompetitionEventRepository competitionEventRepository, ICompetitionRoundRepository competitionRoundRepository, IFixtureRepository fixtureRepository)
 {
     this._competitionRepository      = competitionRepository;
     this._competitionEventRepository = competitionEventRepository;
     this._competitionRoundRepository = competitionRoundRepository;
     this._fixtureRepository          = fixtureRepository;
 }
 public AsyncFootballFixtureStrategy(IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository,
   IWebRepositoryProviderAsync webRepositoryProvider)
 {
   this.fixtureRepository = fixtureRepository;
   this.storedProcRepository = storedProcRepository;
   this.webRepositoryProvider = webRepositoryProvider;
 }
Esempio n. 6
0
 public TennisFixtureStrategy(IFixtureRepository fixtureRepository,
                              ISqlLinqStoredProceduresRepository storedProcRepository, IWebRepositoryProvider webRepositoryProvider)
 {
     this.fixtureRepository     = fixtureRepository;
     this.storedProcRepository  = storedProcRepository;
     this.webRepositoryProvider = webRepositoryProvider;
 }
Esempio n. 7
0
        public TennisSpreadsheetData(IBookmakerRepository bookmakerRepository,
                                     IFixtureRepository fixtureRepository, IPredictionRepository predictionRepository,
                                     IWebRepository webRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
        {
            if (bookmakerRepository == null)
            {
                throw new ArgumentNullException("bookmakerRepository");
            }
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (predictionRepository == null)
            {
                throw new ArgumentNullException("predictionRepository");
            }
            if (webRepository == null)
            {
                throw new ArgumentNullException("webRepository");
            }
            if (storedProcRepository == null)
            {
                throw new ArgumentNullException("storedProcRepository");
            }

            this.bookmakerRepository  = bookmakerRepository;
            this.fixtureRepository    = fixtureRepository;
            this.predictionRepository = predictionRepository;
            this.webRepository        = webRepository;
            this.storedProcRepository = storedProcRepository;

            this.predictions = new Dictionary <string, Model.GenericPrediction>();
        }
 public AsyncFootballFixtureStrategy(IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository,
                                     IWebRepositoryProviderAsync webRepositoryProvider)
 {
     this.fixtureRepository     = fixtureRepository;
     this.storedProcRepository  = storedProcRepository;
     this.webRepositoryProvider = webRepositoryProvider;
 }
 public CouponStrategyProvider(IBookmakerRepository bookmakerService, 
   IFixtureRepository fixtureRepository, IWebRepositoryProvider webRepositoryProvider)
 {
   this.bookmakerRepository = bookmakerService;
   this.fixtureRepository = fixtureRepository;
   this.webRepositoryProvider = webRepositoryProvider;
 }
Esempio n. 10
0
        public AbstractCouponStrategy(IBookmakerRepository bookmakerRepository,
                                      IFixtureRepository fixtureRepository, IWebRepositoryProvider webRepositoryProvider,
                                      IValueOptions valueOptions)
        {
            if (bookmakerRepository == null)
            {
                throw new ArgumentNullException("bookmakerRepository");
            }
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (webRepositoryProvider == null)
            {
                throw new ArgumentNullException("webRepository");
            }
            if (valueOptions == null)
            {
                throw new ArgumentNullException("valueOptions");
            }

            this.bookmakerRepository   = bookmakerRepository;
            this.fixtureRepository     = fixtureRepository;
            this.webRepositoryProvider = webRepositoryProvider;
            this.valueOptions          = valueOptions;

            this.missingAlias = new List <MissingTeamPlayerAliasObject>();
        }
Esempio n. 11
0
        public PredictionService(IPredictionStrategyProvider predictionProvider,
                                 IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
        {
            if (predictionProvider == null)
            {
                throw new ArgumentNullException("predictionProvider");
            }
            if (predictionRepository == null)
            {
                throw new ArgumentNullException("predictionRepository");
            }
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (storedProcRepository == null)
            {
                throw new ArgumentException("storedProcRepository");
            }

            this.predictionProvider   = predictionProvider;
            this.predictionRepository = predictionRepository;
            this.fixtureRepository    = fixtureRepository;
            this.storedProcRepository = storedProcRepository;
        }
Esempio n. 12
0
 public CouponStrategyProvider(IBookmakerRepository bookmakerService,
                               IFixtureRepository fixtureRepository, IWebRepositoryProvider webRepositoryProvider)
 {
     this.bookmakerRepository   = bookmakerService;
     this.fixtureRepository     = fixtureRepository;
     this.webRepositoryProvider = webRepositoryProvider;
 }
Esempio n. 13
0
 public PointCalculator(IPlayerRepository playerRepository, IFixtureRepository fixtureRepository, IRoundRepository roundRepository, IBetRepository betRepository, ITeamRepository teamRepository)
 {
     PlayerRepository  = playerRepository;
     FixtureRepository = fixtureRepository;
     RoundRepository   = roundRepository;
     BetReposiory      = betRepository;
     TeamRepository    = teamRepository;
 }
Esempio n. 14
0
 public FixtureService(IFixtureRepository fixtureRepository,
                       ICompetitionService competitionService,
                       IOptionService optionService) : base(fixtureRepository)
 {
     this.fixtureRepository  = fixtureRepository;
     this.competitionService = competitionService;
     this.optionService      = optionService;
 }
Esempio n. 15
0
 public FootballFixtureService(IFixtureRepository fixtureRepository,
   IFootballFixtureStrategy fixtureStrategy, ISqlLinqStoredProceduresRepository linqStoredProcRepository,
   ISqlStoredProceduresRepository sqlStoredProcRepository)
   : base(fixtureRepository, linqStoredProcRepository, sqlStoredProcRepository)
 {
   if (fixtureStrategy == null) throw new ArgumentNullException("fixtureStrategy");
   this.fixtureStrategy = fixtureStrategy;
 }
 public FixtureManager(
     ILogger <FixtureManager> logger,
     IFixtureRepository fixtureRepository,
     IConnectionProvider connectionProvider)
 {
     _logger             = logger;
     _fixtureRepository  = fixtureRepository;
     _connectionProvider = connectionProvider;
 }
Esempio n. 17
0
 public AsyncTennisOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
                               ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository,
                               IPredictionRepository predictionRepository, IAsyncCouponStrategyProvider couponProvider,
                               IAsyncOddsStrategyProvider oddsProvider)
     : base(fixtureRepository, bookmakerRepository, linqStoredProcRepository, sqlStoredProcRepository, predictionRepository,
            couponProvider, oddsProvider)
 {
     this.sport = "Tennis";
 }
 public FixtureController(ClubContext context, IFixtureRepository fixtureRepository, ITeamRepository teamRepository, IPersonRepository personRepository, IPlayerStatRepository playerStatRepository, ILogger <FixtureController> logger)
 {
     _context              = context;
     _fixtureRepository    = fixtureRepository;
     _teamRepository       = teamRepository;
     _personRepository     = personRepository;
     _playerStatRepository = playerStatRepository;
     _logger = logger;
 }
Esempio n. 19
0
 public FootballOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
                            ISqlLinqStoredProceduresRepository linqStoredProcedureRepository, ISqlStoredProceduresRepository sqlStoredProcedureRepository,
                            IPredictionRepository predictionRepository, ICouponStrategyProvider couponProvider,
                            IOddsStrategyProvider oddsProvider)
     : base(fixtureRepository, bookmakerRepository, linqStoredProcedureRepository, sqlStoredProcedureRepository,
            predictionRepository, couponProvider, oddsProvider)
 {
     this.sport = "Football";
 }
Esempio n. 20
0
 public AsyncTennisOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
   ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository, 
   IPredictionRepository predictionRepository, IAsyncCouponStrategyProvider couponProvider, 
   IAsyncOddsStrategyProvider oddsProvider)
   : base(fixtureRepository, bookmakerRepository, linqStoredProcRepository, sqlStoredProcRepository, predictionRepository, 
   couponProvider, oddsProvider)
 {
   this.sport = "Tennis";
 }
 public CompetitionRepository(ISeasonRepository seasonRepository,
                              ILeagueRepository leagueRepository,
                              ITeamLeagueRepository teamLeagueRepository,
                              IFixtureRepository fixtureRepository)
 {
     this.seasonRepository     = seasonRepository;
     this.leagueRepository     = leagueRepository;
     this.teamLeagueRepository = teamLeagueRepository;
     this.fixtureRepository    = fixtureRepository;
 }
 public AsyncFixtureService(IFixtureRepository fixtureRepository,
   ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository)
 {
   if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
   if (linqStoredProcRepository == null) throw new ArgumentNullException("storedProcRepository");
   if (sqlStoredProcRepository == null) throw new ArgumentNullException("sqlStoredProcRepository");
   this.fixtureRepository = fixtureRepository;
   this.linqStoredProcRepository = linqStoredProcRepository;
   this.sqlStoredProcRepository = sqlStoredProcRepository;
 }
 public CompetitionRepository(ISeasonRepository seasonRepository,
     ILeagueRepository leagueRepository,
     ITeamLeagueRepository teamLeagueRepository,
     IFixtureRepository fixtureRepository)
 {
     this.seasonRepository     = seasonRepository;
     this.leagueRepository     = leagueRepository;
     this.teamLeagueRepository = teamLeagueRepository;
     this.fixtureRepository    = fixtureRepository;
 }
Esempio n. 24
0
    public FootballSpreadsheetData(IBookmakerRepository bookmakerRepository,
      IFixtureRepository fixtureRepository, IPredictionRepository predictionRepository)
    {
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (predictionRepository == null) throw new ArgumentNullException("predictionRepository");

      this.bookmakerRepository = bookmakerRepository;
      this.fixtureRepository = fixtureRepository;
      this.predictionRepository = predictionRepository;
    }
Esempio n. 25
0
        public void SetUp()
        {
            mockFixtureRepository  = Substitute.For <IFixtureRepository>();
            mockCompetitionService = Substitute.For <ICompetitionService>();
            mockOptionService      = Substitute.For <IOptionService>();

            fixtureService = new FixtureService(
                mockFixtureRepository,
                mockCompetitionService,
                mockOptionService);
        }
Esempio n. 26
0
 public FixtureDetailsRequester(
     ILogger <FixtureDetailsRequester> logger,
     IAmqpService amqpService,
     IFixtureRepository fixtureRepository,
     IConnectionProvider connectionProvider) : base(logger)
 {
     _logger             = logger;
     _amqpService        = amqpService;
     _fixtureRepository  = fixtureRepository;
     _connectionProvider = connectionProvider;
 }
        public void SetUp()
        {
            mockFixtureRepository = Substitute.For<IFixtureRepository>();
            mockCompetitionService = Substitute.For<ICompetitionService>();
            mockOptionService = Substitute.For<IOptionService>();

            fixtureService = new FixtureService(
                mockFixtureRepository,
                mockCompetitionService,
                mockOptionService);
        }
    public AsyncPredictionStrategyProvider(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository,
      IWebRepositoryProviderAsync webRepositoryProvider)
    {
      if (predictionRepository == null) throw new ArgumentNullException("predictionRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (webRepositoryProvider == null) throw new ArgumentNullException("webRepository");

      this.predictionRepository = predictionRepository;
      this.fixtureRepository = fixtureRepository;
      this.webRepositoryProvider = webRepositoryProvider;
    }
Esempio n. 29
0
 public TeamResultEngineManager(IServiceProvider serviceProvider, ILogger <TeamResultEngineManager> logger, IUnitOfWork unitOfWork, ICompetitionRepository competitionRepository, IFixtureRepository fixtureRepository)
 {
     this._serviceProvider       = serviceProvider;
     this._unitOfWork            = unitOfWork;
     this._competitionRepository = competitionRepository;
     this._fixtureRepository     = fixtureRepository;
     this._logger                = logger;
     this._serviceProvider       = serviceProvider;
     this._unitOfWork            = unitOfWork;
     this._competitionRepository = competitionRepository;
 }
Esempio n. 30
0
 public AsyncFootballFixtureService(IFixtureRepository fixtureRepository,
                                    IAsyncFootballFixtureStrategy fixtureStrategy, ISqlLinqStoredProceduresRepository linqStoredProcRepository,
                                    ISqlStoredProceduresRepository sqlStoredProcRepository)
     : base(fixtureRepository, linqStoredProcRepository, sqlStoredProcRepository)
 {
     if (fixtureStrategy == null)
     {
         throw new ArgumentNullException("fixtureStrategy");
     }
     this.fixtureStrategy = fixtureStrategy;
 }
    public AbstractAsyncPredictionStrategy(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository,
      IWebRepositoryProviderAsync webRepositoryProvider)
    {
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (predictionRepository == null) throw new ArgumentNullException("preictionRepository");
      if (webRepositoryProvider == null) throw new ArgumentNullException("webRepository");

      this.predictionRepository = predictionRepository;
      this.fixtureRepository = fixtureRepository;
      this.webRepositoryProvider = webRepositoryProvider;
    }
    public AsyncOddsStrategyProvider(IBookmakerRepository bookmakerRepository,
      IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
    {
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (webRepositoryProvider == null) throw new ArgumentNullException("webRepository");

      this.bookmakerRepository = bookmakerRepository;
      this.fixtureRepository = fixtureRepository;
      this.webRepositoryProvider = webRepositoryProvider;
    }
Esempio n. 33
0
 public FixtureDetailsManager(
     ILogger <FixtureDetailsManager> logger,
     IFixtureRepository fixtureRepository,
     ITeamRepository teamRepository,
     IPlayerRepository playerRepository)
 {
     _fixtureRepository = fixtureRepository;
     _teamRepository    = teamRepository;
     _playerRepository  = playerRepository;
     _logger            = logger;
 }
    public PredictionService(IPredictionStrategyProvider predictionProvider,
      IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
    {
      if (predictionProvider == null) throw new ArgumentNullException("predictionProvider");
      if (predictionRepository == null) throw new ArgumentNullException("predictionRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (storedProcRepository == null) throw new ArgumentException("storedProcRepository");

      this.predictionProvider = predictionProvider;
      this.predictionRepository = predictionRepository;
      this.fixtureRepository = fixtureRepository;
      this.storedProcRepository = storedProcRepository;
    }
    public AbstractAsyncOddsStrategy(Sport sport, IBookmakerRepository bookmakerRepository, 
      IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
    {
      if (sport == null) throw new ArgumentNullException("sport");
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (webRepositoryProvider == null) throw new ArgumentNullException("webRepository");

      this.sport = sport;
      this.bookmakerRepository = bookmakerRepository;
      this.fixtureRepository = fixtureRepository;
      this.webRepositoryProvider = webRepositoryProvider;
    }
Esempio n. 36
0
 public UpdatePendingFixtureCommandHandler(
     ILogger <UpdatePendingFixtureCommandHandler> logger,
     IUnitOfWork unitOfWork,
     ICompetitionRepository competitionRepository,
     IFixtureRepository fixtureRepository,
     ICompetitionEntrantRepository competitionEntrantRepository,
     UpdatePendingFixtureCommandValidator validator)
 {
     this._unitOfWork                   = unitOfWork;
     this._competitionRepository        = competitionRepository;
     this._fixtureRepository            = fixtureRepository;
     this._competitionEntrantRepository = competitionEntrantRepository;
     this._validator = validator;
 }
Esempio n. 37
0
 public LeagueSummaryManager(
     ILogger <LeagueSummaryManager> logger,
     ITeamRepository teamRepository,
     IFixtureRepository fixtureRepository,
     ITeamSummaryRepository teamSummaryRepository,
     IPlayerRepository playerRepository,
     IPlayerSummaryRepository playerSummaryRepository)
 {
     _teamRepository          = teamRepository;
     _logger                  = logger;
     _fixtureRepository       = fixtureRepository;
     _teamSummaryRepository   = teamSummaryRepository;
     _playerRepository        = playerRepository;
     _playerSummaryRepository = playerSummaryRepository;
 }
Esempio n. 38
0
 public MatchController(IUnitOfWork unitOfWork, ISessionProvider sessionProvider, IFixtureRepository fixtureRepository, IMatchRepository matchRepository, IMatchFormatRepository matchFormatRepository,
                        IPlayerResultEngineManager playerResultEngineManager, ICompetitionPlayerGameStatisticRepository competitionPlayerGameStatisticRepository, IPlayerRepository playerRepository, IMatchService matchService,
                        ICompetitionRepository competitionRepository, ITeamResultEngineManager teamResultEngineManager)
 {
     this._unitOfWork                = unitOfWork;
     this._sessionProvider           = sessionProvider;
     this._fixtureRepository         = fixtureRepository;
     this._matchRepository           = matchRepository;
     this._matchFormatRepository     = matchFormatRepository;
     this._playerResultEngineManager = playerResultEngineManager;
     this._competitionPlayerGameStatisticRepository = competitionPlayerGameStatisticRepository;
     this._playerRepository        = playerRepository;
     this._matchService            = matchService;
     this._competitionRepository   = competitionRepository;
     this._teamResultEngineManager = teamResultEngineManager;
 }
    public AbstractAsyncCouponStrategy(IBookmakerRepository bookmakerRepository,
      IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider, 
      IValueOptions valueOptions)
    {
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (webRepositoryProvider == null) throw new ArgumentNullException("webRepository");
      if (valueOptions == null) throw new ArgumentNullException("valueOptions");

      this.bookmakerRepository = bookmakerRepository;
      this.fixtureRepository = fixtureRepository;
      this.webRepositoryProvider = webRepositoryProvider;
      this.valueOptions = valueOptions;

      this.missingAlias = new List<MissingTeamPlayerAliasObject>();
    }
Esempio n. 40
0
    public TennisSpreadsheetData(IBookmakerRepository bookmakerRepository,
      IFixtureRepository fixtureRepository, IPredictionRepository predictionRepository,
      IWebRepository webRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
    {
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (predictionRepository == null) throw new ArgumentNullException("predictionRepository");
      if (webRepository == null) throw new ArgumentNullException("webRepository");
      if (storedProcRepository == null) throw new ArgumentNullException("storedProcRepository");

      this.bookmakerRepository = bookmakerRepository;
      this.fixtureRepository = fixtureRepository;
      this.predictionRepository = predictionRepository;
      this.webRepository = webRepository;
      this.storedProcRepository = storedProcRepository;

      this.predictions = new Dictionary<string, Model.GenericPrediction>();
    }
Esempio n. 41
0
        public OddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
                           ISqlLinqStoredProceduresRepository linqStoredProcedureRepository, ISqlStoredProceduresRepository sqlStoredProcedureRepository,
                           IPredictionRepository predicitonRepository, ICouponStrategyProvider couponProvider,
                           IOddsStrategyProvider oddsProvider)
        {
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (bookmakerRepository == null)
            {
                throw new ArgumentNullException("bookmakerRepository");
            }
            if (linqStoredProcedureRepository == null)
            {
                throw new ArgumentNullException("linqStoredProcedureRepository");
            }
            if (sqlStoredProcedureRepository == null)
            {
                throw new ArgumentNullException("sqlStoredProcedureRepository");
            }
            if (predicitonRepository == null)
            {
                throw new ArgumentNullException("predictionRepository");
            }
            if (couponProvider == null)
            {
                throw new ArgumentNullException("couponProvider");
            }
            if (oddsProvider == null)
            {
                throw new ArgumentNullException("oddsProvider");
            }

            this.fixtureRepository             = fixtureRepository;
            this.bookmakerRepository           = bookmakerRepository;
            this.linqStoredProcedureRepository = linqStoredProcedureRepository;
            this.predicitonRepository          = predicitonRepository;
            this.couponProvider = couponProvider;
            this.oddsProvider   = oddsProvider;

            this.prescreenedCouponTarget = new List <Model.GenericMatchCoupon>();
        }
Esempio n. 42
0
 public AsyncFixtureService(IFixtureRepository fixtureRepository,
                            ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository)
 {
     if (fixtureRepository == null)
     {
         throw new ArgumentNullException("fixtureRepository");
     }
     if (linqStoredProcRepository == null)
     {
         throw new ArgumentNullException("storedProcRepository");
     }
     if (sqlStoredProcRepository == null)
     {
         throw new ArgumentNullException("sqlStoredProcRepository");
     }
     this.fixtureRepository        = fixtureRepository;
     this.linqStoredProcRepository = linqStoredProcRepository;
     this.sqlStoredProcRepository  = sqlStoredProcRepository;
 }
        public AsyncOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
                                ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository,
                                IPredictionRepository predicitonRepository, IAsyncCouponStrategyProvider couponProvider,
                                IAsyncOddsStrategyProvider oddsProvider)
        {
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (bookmakerRepository == null)
            {
                throw new ArgumentNullException("bookmakerRepository");
            }
            if (linqStoredProcRepository == null)
            {
                throw new ArgumentNullException("linqStoredProcRepository");
            }
            if (sqlStoredProcRepository == null)
            {
                throw new ArgumentNullException("sqlStoredProcRepository");
            }
            if (predicitonRepository == null)
            {
                throw new ArgumentNullException("predictionRepository");
            }
            if (couponProvider == null)
            {
                throw new ArgumentNullException("couponProvider");
            }
            if (oddsProvider == null)
            {
                throw new ArgumentNullException("oddsProvider");
            }

            this.fixtureRepository        = fixtureRepository;
            this.bookmakerRepository      = bookmakerRepository;
            this.linqStoredProcRepository = linqStoredProcRepository;
            this.sqlStoredProcRepository  = sqlStoredProcRepository;
            this.predicitonRepository     = predicitonRepository;
            this.couponProvider           = couponProvider;
            this.oddsProvider             = oddsProvider;
        }
 public StatsReportingRepository(ITeamLeagueRepository teamLeagueRepository,
     IPlayerLeagueStatsRepository playerLeagueStatsRepository,
     IPlayerFixtureRepository playerFixtureRepository,
     IPlayerSeasonStatsRepository playerSeasonStatsRepository,
     IPlayerCareerStatsRepository playerCareerStatsRepository,
     ILeagueWinnerRepository leagueWinnerRepository,
     ICupWinnerRepository cupWinnerRepository,
     IFixtureRepository fixtureRepository,
     IPlayerCupStatsRepository playerCupStatsRepository)
 {
     this.teamLeagueRepository        = teamLeagueRepository;
     this.playerLeagueStatsRepository = playerLeagueStatsRepository;
     this.playerFixtureRepository     = playerFixtureRepository;
     this.playerSeasonStatsRepository = playerSeasonStatsRepository;
     this.playerCareerStatsRepository = playerCareerStatsRepository;
     this.leagueWinnerRepository      = leagueWinnerRepository;
     this.cupWinnerRepository         = cupWinnerRepository;
     this.fixtureRepository           = fixtureRepository;
     this.playerCupStatsRepository    = playerCupStatsRepository;
 }
 public TeamResultEngineContext(
     ITeamLeagueTableRepository teamLeagueTableRepository,
     IPlayerMeritTableRepository playerMeritTableRepository,
     IMatchRepository matchRepository,
     IFixtureRepository fixtureRepository,
     IMatchFormatRepository matchFormatRepository,
     IPlayerRepository playerRepository,
     IRuleSetRepository ruleSetRepository,
     ICompetitionPlayerGameStatisticRepository competitionPlayerGameStatisticRepository)
 {
     this._teamLeagueTableRepository  = teamLeagueTableRepository;
     this._playerMeritTableRepository = playerMeritTableRepository;
     this._matchRepository            = matchRepository;
     this._fixtureRepository          = fixtureRepository;
     this._matchFormatRepository      = matchFormatRepository;
     this._playerRepository           = playerRepository;
     this._ruleSetRepository          = ruleSetRepository;
     this._competitionPlayerGameStatisticRepository = competitionPlayerGameStatisticRepository;
     this._players = new Dictionary <int, BowlsResults.Common.Domain.Entities.Player>();
 }
Esempio n. 46
0
        public AbstractPredictionStrategy(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository,
                                          IWebRepositoryProvider webRepositoryProvider)
        {
            if (fixtureRepository == null)
            {
                throw new ArgumentNullException("fixtureRepository");
            }
            if (predictionRepository == null)
            {
                throw new ArgumentNullException("preictionRepository");
            }
            if (webRepositoryProvider == null)
            {
                throw new ArgumentNullException("webRepository");
            }

            this.predictionRepository  = predictionRepository;
            this.fixtureRepository     = fixtureRepository;
            this.webRepositoryProvider = webRepositoryProvider;
        }
    public AsyncOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
      ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository,
      IPredictionRepository predicitonRepository, IAsyncCouponStrategyProvider couponProvider, 
      IAsyncOddsStrategyProvider oddsProvider)
    {
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (linqStoredProcRepository == null) throw new ArgumentNullException("linqStoredProcRepository");
      if (sqlStoredProcRepository == null) throw new ArgumentNullException("sqlStoredProcRepository");
      if (predicitonRepository == null) throw new ArgumentNullException("predictionRepository");
      if (couponProvider == null) throw new ArgumentNullException("couponProvider");
      if (oddsProvider == null) throw new ArgumentNullException("oddsProvider");

      this.fixtureRepository = fixtureRepository;
      this.bookmakerRepository = bookmakerRepository;
      this.linqStoredProcRepository = linqStoredProcRepository;
      this.sqlStoredProcRepository = sqlStoredProcRepository;
      this.predicitonRepository = predicitonRepository;
      this.couponProvider = couponProvider;
      this.oddsProvider = oddsProvider;
    }
Esempio n. 48
0
    public OddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
      ISqlLinqStoredProceduresRepository linqStoredProcedureRepository, ISqlStoredProceduresRepository sqlStoredProcedureRepository,
      IPredictionRepository predicitonRepository, ICouponStrategyProvider couponProvider, 
      IOddsStrategyProvider oddsProvider)
    {
      if (fixtureRepository == null) throw new ArgumentNullException("fixtureRepository");
      if (bookmakerRepository == null) throw new ArgumentNullException("bookmakerRepository");
      if (linqStoredProcedureRepository == null) throw new ArgumentNullException("linqStoredProcedureRepository");
      if (sqlStoredProcedureRepository == null) throw new ArgumentNullException("sqlStoredProcedureRepository");
      if (predicitonRepository == null) throw new ArgumentNullException("predictionRepository");
      if (couponProvider == null) throw new ArgumentNullException("couponProvider");
      if (oddsProvider == null) throw new ArgumentNullException("oddsProvider");

      this.fixtureRepository = fixtureRepository;
      this.bookmakerRepository = bookmakerRepository;
      this.linqStoredProcedureRepository = linqStoredProcedureRepository;
      this.predicitonRepository = predicitonRepository;
      this.couponProvider = couponProvider;
      this.oddsProvider = oddsProvider;

      this.prescreenedCouponTarget = new List<Model.GenericMatchCoupon>();
    }
 public BestBettingAsyncOddsStrategy(Sport sport, IBookmakerRepository bookmakerRepository,
   IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
   : base(sport, bookmakerRepository, fixtureRepository, webRepositoryProvider)
 { }
Esempio n. 50
0
 public ResultImporter(ITeamRepository teamRepository, IFixtureRepository fixtureRepository)
     : base(teamRepository, fixtureRepository)
 {
 }
 public FootballAsyncPredictionStrategy(IPredictionRepository predictionRepository,
   IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
   : base(predictionRepository, fixtureRepository, webRepositoryProvider)
 {
 }
Esempio n. 52
0
 public TennisPredictionService(IPredictionStrategyProvider predictionProvider,
   IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
   : base(predictionProvider, predictionRepository, fixtureRepository, storedProcRepository)
 { }
 public OddsCheckerMobiAsyncOddsStrategy(Sport sport, IBookmakerRepository bookmakerRepository,
   IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider)
   : base(sport, bookmakerRepository, fixtureRepository, webRepositoryProvider)
 { }
Esempio n. 54
0
 public void Setup()
 {
     Commands commands = new Commands();
     teamRepository = new TeamRepository(commands);
     fixtureRepository = new FixtureRepository(commands);
 }
 public void Startup()
 {
     fixtureRepository = new FixtureRepository(new TestBasketballContext());
 }
Esempio n. 56
0
 public FootballOddsService(IFixtureRepository fixtureRepository, IBookmakerRepository bookmakerRepository,
   ISqlLinqStoredProceduresRepository linqStoredProcedureRepository, ISqlStoredProceduresRepository sqlStoredProcedureRepository,
   IPredictionRepository predictionRepository, ICouponStrategyProvider couponProvider, 
   IOddsStrategyProvider oddsProvider)
   : base(fixtureRepository, bookmakerRepository, linqStoredProcedureRepository, sqlStoredProcedureRepository, 
   predictionRepository, couponProvider, oddsProvider)
 {
   this.sport = "Football";
 }
 public FixtureController(IFixtureRepository fixtureRepository)
 {
     this.fixtureRepository = fixtureRepository;
 }
 public void TearDown()
 {
     fixtureRepository = null;
     fixtures = null;
 }
Esempio n. 59
0
 public TennisPredictionStrategy(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, 
   IWebRepositoryProvider webRepositoryProvider)
   : base(predictionRepository, fixtureRepository, webRepositoryProvider)
 {
 }
Esempio n. 60
0
 protected ImporterBase(ITeamRepository teamRepository, IFixtureRepository fixtureRepository)
 {
     this.teamRepository = teamRepository;
     this.fixtureRepository = fixtureRepository;
 }