public NotificationMapper(INotificationMediumRepository notificationMediumRepository, IPopulator <NotificationEntity, Notification> notificationPopulator, IPhoneNumberFactory phoneNumberFactory) { _notificationMediumRepository = notificationMediumRepository; _notificationPopulator = notificationPopulator; _phoneNumberFactory = phoneNumberFactory; }
public NotificationPollingAgent(INotificationRepository notificationRepository, ICalendar calendar, INotificationEmailSender notificationEmailSender, ILogManager logManager, ISettings settings, ITwilioMessagingService twilioMessagingService, INotificationMediumRepository notificationMediumRepository) { _notificationRepository = notificationRepository; _calendar = calendar; _notificationEmailSender = notificationEmailSender; _settings = settings; _twilioMessagingService = twilioMessagingService; _notificationMediumRepository = notificationMediumRepository; _logger = logManager.GetLogger <NotificationPollingAgent>(); }
//private readonly NotificationMedium _emailNotificationMedium; //private readonly NotificationMedium _smsNotificationMedium; //private readonly NotificationMedium _faxNotificationMedium; public NotificationEmailFactory(ICalendar calendar, INotificationMediumRepository notificationMediumRepository) { _calendar = calendar; _notificationMediumRepository = notificationMediumRepository; //var notificationMediumList = _notificationMediumRepository.GetAll(); //_emailNotificationMedium = notificationMediumList.Single(s => s.Medium == NotificationMediumType.EmailNotification); //_smsNotificationMedium = notificationMediumList.Single(s => s.Medium == NotificationMediumType.SmsNotification); //_faxNotificationMedium = notificationMediumList.Single(s => s.Medium == NotificationMediumType.FaxNotification); }
public void SetUp() { DependencyRegistrar.RegisterDependencies(); _notificationRepository = IoC.Resolve <INotificationRepository>(); _notificationTypeRepository = IoC.Resolve <INotificationTypeRepository>(); _notificationMediumRepository = IoC.Resolve <INotificationMediumRepository>(); _notificationTypes = _notificationTypeRepository.GetAll().ToList(); _notificationMedia = _notificationMediumRepository.GetAll().ToList(); }
public PhysicianPartnerSendFaxPollingAgent(INotificationRepository notificationRepository, ICalendar calendar, ILogManager logManager, INotificationMediumRepository notificationMediumRepository, IEFaxApi eFaxApi, IEventCustomerNotificationRepository eventCustomerNotificationRepository, IEventCustomerRepository eventCustomerRepository, ICustomerRepository customerRepository, IEmailNotificationModelsFactory emailNotificationModelsFactory, INotifier notifier, IPrimaryCarePhysicianRepository primaryCarePhysicianRepository, IEventRepository eventRepository, ISettings settings, INotificationTypeRepository notificationTypeRepository) { _notificationRepository = notificationRepository; _calendar = calendar; _notificationMediumRepository = notificationMediumRepository; _eFaxApi = eFaxApi; _eventCustomerNotificationRepository = eventCustomerNotificationRepository; _eventCustomerRepository = eventCustomerRepository; _customerRepository = customerRepository; _emailNotificationModelsFactory = emailNotificationModelsFactory; _notifier = notifier; _primaryCarePhysicianRepository = primaryCarePhysicianRepository; _eventRepository = eventRepository; _notificationTypeRepository = notificationTypeRepository; _timeIntervalToPingApi = settings.TimeIntervalToPingApi; _emergencyFaxNumber = settings.EmergencyFaxNumber; _maximumWaitTime = settings.MaximumTimeToWaitApi; _logger = logManager.GetLogger <NotificationPollingAgent>(); }
public AwvSendFaxPollingAgent(INotificationRepository notificationRepository, ILogManager logManager, INotificationMediumRepository notificationMediumRepository, //IEFaxApi eFaxApi, IEventCustomerNotificationRepository eventCustomerNotificationRepository, IEventCustomerRepository eventCustomerRepository, ICustomerRepository customerRepository, IEmailNotificationModelsFactory emailNotificationModelsFactory, INotifier notifier, IPrimaryCarePhysicianRepository primaryCarePhysicianRepository, IEventRepository eventRepository, ISettings settings, INotificationTypeRepository notificationTypeRepository, IEFaxHelperService eFaxHealperService) { _notificationRepository = notificationRepository; _notificationMediumRepository = notificationMediumRepository; _eventCustomerNotificationRepository = eventCustomerNotificationRepository; _eventCustomerRepository = eventCustomerRepository; _customerRepository = customerRepository; _emailNotificationModelsFactory = emailNotificationModelsFactory; _notifier = notifier; _primaryCarePhysicianRepository = primaryCarePhysicianRepository; _eventRepository = eventRepository; _settings = settings; _notificationTypeRepository = notificationTypeRepository; _eFaxHealperService = eFaxHealperService; _logger = logManager.GetLogger <AwvSendFaxPollingAgent>(); }
//private readonly IEnumerable<NotificationMedium> _notificationMedia; public NotificationTypeMapper(INotificationMediumRepository notificationMediumRepository) { _notificationMediumRepository = notificationMediumRepository; // _notificationMedia = notificationMediumRepository.GetAll().ToList(); }
public CommonNotificationPopulator(INotificationMediumRepository notificationMediumRepository, INotificationTypeRepository notificationTypeRepository) { _notificationMediumRepository = notificationMediumRepository; _notificationTypeRepository = notificationTypeRepository; }