private List <IAuditEventEmailCreator> GetEmailCreators() { // Set email creators var emailValueConverters = GetValueConverters(); List <IAuditEventEmailCreator> emailCreators = new List <IAuditEventEmailCreator>(); emailCreators.Add(new DefaultAuditEventEmailCreator(_environmentId, _emailAuditEventSettingsRepository.GetAll(), emailValueConverters)); emailCreators.Add(new RunAuditEventEmailCreator(_environmentId, _frontendUrl, _repositoryFactory, _emailAuditEventSettingsRepository.GetAll(), emailValueConverters)); return(emailCreators); }
private List <IAuditEventEmailCreator> GetEmailCreators() { // Define list of email creators List <IAuditEventEmailCreator> emailCreators = new List <IAuditEventEmailCreator>() { new BasicEmailCreator(_auditEventTypeRepository, _auditEventValueTypeRepository, _emailAuditEventSettingsRepository.GetAll(), GetValueConverters(), GetEmailHTMLStyle()) }; return(emailCreators); }
public IEnumerable <EmailAuditEventSettings> GetAll() => _emailAuditEventSettingsRepository.GetAll();