//private readonly string groupName; public SmsRequestEventStoreDao(IEventStoreDataFactory dataFactory) { if (dataFactory == null) { throw new ArgumentNullException("dataFactory"); } this.dataFactory = dataFactory; }
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; }