Exemple #1
0
        public UserInterfaceProvider([NotNull] IUserInterfaceRepository userInterfaceRepository)
        {
            if (userInterfaceRepository == null)
            {
                throw new ArgumentNullException(nameof(userInterfaceRepository));
            }

            _userInterfaceRepository = userInterfaceRepository;
        }
        public UserInterfaceChecker(
            [NotNull] ITimeService timeService,
            [NotNull] IUserInterfaceRepository userInterfacesRepository)
        {
            if (timeService == null)
            {
                throw new ArgumentNullException(nameof(timeService));
            }
            if (userInterfacesRepository == null)
            {
                throw new ArgumentNullException(nameof(userInterfacesRepository));
            }

            _timeService = timeService;
            _userInterfacesRepository = userInterfacesRepository;
        }