コード例 #1
0
    public TennisFacadeService(ITennisFixtureService tennisFixtureService,
      ITennisPredictionService tennisPredictionService, ITennisOddsService 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;
    }
コード例 #2
0
        public TennisFacadeService(ITennisFixtureService tennisFixtureService,
                                   ITennisPredictionService tennisPredictionService, ITennisOddsService 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;
        }