public AsyncTennisFacadeClientService(IAsyncTennisFixtureService tennisFixtureService,
      IAsyncTennisPredictionService tennisPredictionService, IAsyncTennisOddsService tennisOddsService)
    {
      if (tennisFixtureService == null) throw new ArgumentNullException("tennisFixtureService");
      if (tennisPredictionService == null) throw new ArgumentNullException("tennisPredictionService");
      if (tennisOddsService == null) throw new ArgumentNullException("tennisOddsService");

      this.tennisFixtureService = tennisFixtureService;
      this.tennisPredictionService = tennisPredictionService;
      this.tennisOddsService = tennisOddsService;
    }
Exemplo n.º 2
0
        public AsyncTennisFacadeAdminService(IAsyncTennisFixtureService tennisFixtureService,
                                             IAsyncTennisPredictionService tennisPredictionService, IAsyncTennisOddsService tennisOddsService)
        {
            if (tennisFixtureService == null)
            {
                throw new ArgumentNullException("tennisFixtureService");
            }
            if (tennisPredictionService == null)
            {
                throw new ArgumentNullException("tennisPredictionService");
            }
            if (tennisOddsService == null)
            {
                throw new ArgumentNullException("tennisOddsService");
            }

            this.tennisFixtureService    = tennisFixtureService;
            this.tennisPredictionService = tennisPredictionService;
            this.tennisOddsService       = tennisOddsService;
        }