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); }
public TennisFixtureStrategy(IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository, IWebRepositoryProvider webRepositoryProvider) { this.fixtureRepository = fixtureRepository; this.storedProcRepository = storedProcRepository; this.webRepositoryProvider = webRepositoryProvider; }
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; }
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 CouponStrategyProvider(IBookmakerRepository bookmakerService, IFixtureRepository fixtureRepository, IWebRepositoryProvider webRepositoryProvider) { this.bookmakerRepository = bookmakerService; this.fixtureRepository = fixtureRepository; this.webRepositoryProvider = webRepositoryProvider; }
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>(); }
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 PointCalculator(IPlayerRepository playerRepository, IFixtureRepository fixtureRepository, IRoundRepository roundRepository, IBetRepository betRepository, ITeamRepository teamRepository) { PlayerRepository = playerRepository; FixtureRepository = fixtureRepository; RoundRepository = roundRepository; BetReposiory = betRepository; TeamRepository = teamRepository; }
public FixtureService(IFixtureRepository fixtureRepository, ICompetitionService competitionService, IOptionService optionService) : base(fixtureRepository) { this.fixtureRepository = fixtureRepository; this.competitionService = competitionService; this.optionService = optionService; }
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; }
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; }
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 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 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; }
public void SetUp() { mockFixtureRepository = Substitute.For <IFixtureRepository>(); mockCompetitionService = Substitute.For <ICompetitionService>(); mockOptionService = Substitute.For <IOptionService>(); fixtureService = new FixtureService( mockFixtureRepository, mockCompetitionService, mockOptionService); }
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; }
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; }
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; }
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; }
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; }
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; }
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>(); }
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 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 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>(); }
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; }
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) { }
public ResultImporter(ITeamRepository teamRepository, IFixtureRepository fixtureRepository) : base(teamRepository, fixtureRepository) { }
public FootballAsyncPredictionStrategy(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, IWebRepositoryProviderAsync webRepositoryProvider) : base(predictionRepository, fixtureRepository, webRepositoryProvider) { }
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) { }
public void Setup() { Commands commands = new Commands(); teamRepository = new TeamRepository(commands); fixtureRepository = new FixtureRepository(commands); }
public void Startup() { fixtureRepository = new FixtureRepository(new TestBasketballContext()); }
public FixtureController(IFixtureRepository fixtureRepository) { this.fixtureRepository = fixtureRepository; }
public void TearDown() { fixtureRepository = null; fixtures = null; }
public TennisPredictionStrategy(IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, IWebRepositoryProvider webRepositoryProvider) : base(predictionRepository, fixtureRepository, webRepositoryProvider) { }
protected ImporterBase(ITeamRepository teamRepository, IFixtureRepository fixtureRepository) { this.teamRepository = teamRepository; this.fixtureRepository = fixtureRepository; }