コード例 #1
0
    public AsyncFootballFacadeClientService(IAsyncFootballFixtureService footballFixtureService,
      IAsyncFootballPredictionService footballPredictionService, IAsyncFootballOddsService footballOddsService)
    {
      if (footballFixtureService == null) throw new ArgumentNullException("tennisFixtureService");
      if (footballPredictionService == null) throw new ArgumentNullException("tennisPredictionService");
      if (footballOddsService == null) throw new ArgumentNullException("tennisOddsService");

      this.footballFixtureService = footballFixtureService;
      this.footballPredictionService = footballPredictionService;
      this.footballOddsService = footballOddsService;
    }
コード例 #2
0
        public AsyncFootballFacadeClientService(IAsyncFootballFixtureService footballFixtureService,
                                                IAsyncFootballPredictionService footballPredictionService, IAsyncFootballOddsService footballOddsService)
        {
            if (footballFixtureService == null)
            {
                throw new ArgumentNullException("tennisFixtureService");
            }
            if (footballPredictionService == null)
            {
                throw new ArgumentNullException("tennisPredictionService");
            }
            if (footballOddsService == null)
            {
                throw new ArgumentNullException("tennisOddsService");
            }

            this.footballFixtureService    = footballFixtureService;
            this.footballPredictionService = footballPredictionService;
            this.footballOddsService       = footballOddsService;
        }