예제 #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 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;
    }
예제 #3
0
 public TennisPredictionService(IPredictionStrategyProvider predictionProvider,
   IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
   : base(predictionProvider, predictionRepository, fixtureRepository, storedProcRepository)
 { }
예제 #4
0
 public FootballPredictionService(IPredictionStrategyProvider predictionProvider,
                                  IPredictionRepository predictionRepository, IFixtureRepository fixtureRepository, ISqlLinqStoredProceduresRepository storedProcRepository)
     : base(predictionProvider, predictionRepository, fixtureRepository, storedProcRepository)
 {
 }