public SmsRequestProcessor(IEventStoreDataFactory dataFactory, ISmsDao smsDao, ISmsServiceProvider smsServiceFactory)
        {
            if (dataFactory == null)
            {
                throw new ArgumentNullException("dataFactory");
            }
            if (smsDao == null)
            {
                throw new ArgumentNullException("smsDao");
            }
            if (smsServiceFactory == null)
            {
                throw new ArgumentNullException("smsServiceFactory");
            }

            this.userCred          = new EventStore.ClientAPI.SystemData.UserCredentials(dataFactory.Username, dataFactory.Password);
            this.smsDao            = smsDao;
            this.dataFactory       = dataFactory;
            this.smsServiceFactory = smsServiceFactory;
        }
Example #2
0
 public SupportRequestService(IEmailServiceProvider emailService,
                              ISmsServiceProvider smsService)
 {
     _emailService = emailService;
     _smsService   = smsService;
 }