Exemple #1
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;
        }
 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 TennisFixtureStrategy(IFixtureRepository fixtureRepository,
                              ISqlLinqStoredProceduresRepository storedProcRepository, IWebRepositoryProvider webRepositoryProvider)
 {
     this.fixtureRepository     = fixtureRepository;
     this.storedProcRepository  = storedProcRepository;
     this.webRepositoryProvider = webRepositoryProvider;
 }
 public TennisFixtureStrategy(IFixtureRepository fixtureRepository,
   ISqlLinqStoredProceduresRepository storedProcRepository, IWebRepositoryProvider webRepositoryProvider)
 {
   this.fixtureRepository = fixtureRepository;
   this.storedProcRepository = storedProcRepository;
   this.webRepositoryProvider = webRepositoryProvider;
 }
 public AsyncFootballFixtureStrategy(IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository,
   IWebRepositoryProviderAsync webRepositoryProvider)
 {
   this.fixtureRepository = fixtureRepository;
   this.storedProcRepository = storedProcRepository;
   this.webRepositoryProvider = webRepositoryProvider;
 }
 public AsyncTennisFixtureService(IFixtureRepository fixtureRepository,
   IAsyncTennisFixtureStrategy fixtureStrategy, 
   ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository)
   : base(fixtureRepository, linqStoredProcRepository, sqlStoredProcRepository)
 {
   if (fixtureStrategy == null) throw new ArgumentNullException("fixtureStrategy");
   this.fixtureStrategy = fixtureStrategy;
 }
 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 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";
 }
Exemple #10
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 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 AsyncTennisFixtureService(IFixtureRepository fixtureRepository,
                                  IAsyncTennisFixtureStrategy fixtureStrategy,
                                  ISqlLinqStoredProceduresRepository linqStoredProcRepository, ISqlStoredProceduresRepository sqlStoredProcRepository)
     : base(fixtureRepository, linqStoredProcRepository, sqlStoredProcRepository)
 {
     if (fixtureStrategy == null)
     {
         throw new ArgumentNullException("fixtureStrategy");
     }
     this.fixtureStrategy = fixtureStrategy;
 }
    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 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>();
    }
Exemple #15
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>();
        }
Exemple #16
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 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>();
    }
Exemple #20
0
 public FootballPredictionService(IPredictionStrategyProvider predictionProvider,
                                  IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
     : base(predictionProvider, predictionRepository, fixtureRepository, storedProcRepository)
 {
 }
 public TennisPredictionService(IPredictionStrategyProvider predictionProvider,
   IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
   : base(predictionProvider, predictionRepository, fixtureRepository, storedProcRepository)
 { }
 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";
 }