Beispiel #1
0
        public ActionExecutor(ILocationRepository locationRepository, IActionRepository actionRepository, ILogger logger,
            ICredentialsRepository credentialsRepository, IFifthplayRepository fifthplayRepository,
            IIftttRepository iftttRepository)
        {
            if (locationRepository == null) throw new ArgumentNullException(nameof(locationRepository));
            if (actionRepository == null) throw new ArgumentNullException(nameof(actionRepository));
            if (logger == null) throw new ArgumentNullException(nameof(logger));
            if (credentialsRepository == null) throw new ArgumentNullException(nameof(credentialsRepository));
            if (fifthplayRepository == null) throw new ArgumentNullException(nameof(fifthplayRepository));
            if (iftttRepository == null) throw new ArgumentNullException(nameof(iftttRepository));

            _locationRepository = locationRepository;
            _actionRepository = actionRepository;
            _logger = logger;
            _credentialsRepository = credentialsRepository;
            _fifthplayRepository = fifthplayRepository;
            _iftttRepository = iftttRepository;
        }
Beispiel #2
0
        public ActionExecutor(ILocationRepository locationRepository, IActionRepository actionRepository, ILogger logger,
                              ICredentialsRepository credentialsRepository, IFifthplayRepository fifthplayRepository,
                              IIftttRepository iftttRepository)
        {
            if (locationRepository == null)
            {
                throw new ArgumentNullException(nameof(locationRepository));
            }
            if (actionRepository == null)
            {
                throw new ArgumentNullException(nameof(actionRepository));
            }
            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (credentialsRepository == null)
            {
                throw new ArgumentNullException(nameof(credentialsRepository));
            }
            if (fifthplayRepository == null)
            {
                throw new ArgumentNullException(nameof(fifthplayRepository));
            }
            if (iftttRepository == null)
            {
                throw new ArgumentNullException(nameof(iftttRepository));
            }

            _locationRepository    = locationRepository;
            _actionRepository      = actionRepository;
            _logger                = logger;
            _credentialsRepository = credentialsRepository;
            _fifthplayRepository   = fifthplayRepository;
            _iftttRepository       = iftttRepository;
        }