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; }
public SubscriberValidator(ISubscriberRepository repository) { repository.CheckArgumentIsNull(nameof(repository)); _repository = repository; }