예제 #1
0
        public SubscriberService(
            ISubscriberFactory factory,
            ISubscriberRepository repository,
            ISubscriberValidator validator)
        {
            factory.CheckArgumentIsNull(nameof(factory));
            _factory = factory;

            repository.CheckArgumentIsNull(nameof(repository));
            _repository = repository;

            validator.CheckArgumentIsNull(nameof(validator));
            _validator = validator;
        }
예제 #2
0
 public SubscriberValidator(ISubscriberRepository repository)
 {
     repository.CheckArgumentIsNull(nameof(repository));
     _repository = repository;
 }