Beispiel #1
0
        public GetMatchesTask(int teamId,
                              DateTime?startDate,
                              DateTime?endDate,
                              IMatchArchiveBridge mab,
                              IDataBridge <MatchDetails> mdb)
        {
            if (startDate == null)
            {
                throw new ArgumentNullException("startDate");
            }
            _startDate = startDate;

            if (endDate == null)
            {
                throw new ArgumentNullException("endDate");
            }
            _endDate = endDate;

            if (mab == null)
            {
                throw new ArgumentNullException("mab");
            }
            _mab = mab;

            if (mdb == null)
            {
                throw new ArgumentNullException("mdb");
            }
            _mdb = mdb;

            _teamId = teamId;
        }
Beispiel #2
0
        public GetMatchesTask(int teamId, ITeamDetailsBridge tdb, IMatchArchiveBridge mab, IDataBridge <MatchDetails> mdb)
        {
            if (tdb == null)
            {
                throw new ArgumentNullException("tbd");
            }
            _tdb = tdb;

            if (mab == null)
            {
                throw new ArgumentNullException("mab");
            }
            _mab = mab;

            if (mdb == null)
            {
                throw new ArgumentNullException("mdb");
            }
            _mdb = mdb;

            _teamId = teamId;
        }