public SmsSender(ISmsNotifierParametersProvider smsNotifierParametersProvider, IInstantSmsService service) { this.smsNotifierParametersProvider = smsNotifierParametersProvider ?? throw new ArgumentNullException(nameof(smsNotifierParametersProvider)); this.service = service ?? throw new ArgumentNullException(nameof(service)); }
public SmsNotifier(ISmsNotifierParametersProvider smsNotifierParametersProvider) { this.smsNotifierParametersProvider = smsNotifierParametersProvider ?? throw new ArgumentNullException(nameof(smsNotifierParametersProvider)); }
public LowBalanceNotifier(ISmsSender smsSender, ISmsBalanceNotifier balanceNotifier, ISmsNotifierParametersProvider smsNotifierParametersProvider) { this.smsSender = smsSender ?? throw new ArgumentNullException(nameof(smsSender)); this.balanceNotifier = balanceNotifier ?? throw new ArgumentNullException(nameof(balanceNotifier)); this.smsNotifierParametersProvider = smsNotifierParametersProvider ?? throw new ArgumentNullException(nameof(smsNotifierParametersProvider)); }