public AggregateReportPublishingEmailMessageInfoProcessor(IEmailMessageInfoProcessor <TDomain> processor,
                                                           IEnumerable <IMessagePublisher> publishers, ILogger log)
 {
     _processor  = processor;
     _log        = log;
     _publishers = publishers.ToList();
 }
Пример #2
0
 public PersistentEmailMessageInfoProcessor(IEmailMessageInfoProcessor <TDomain> processor,
                                            IToEntityConverter <TDomain, TEntity> converter,
                                            IReportDaoAsync <TEntity> dao,
                                            ILogger log)
 {
     _processor = processor;
     _converter = converter;
     _dao       = dao;
     _log       = log;
 }
 public S3EmailMessageProcessor(
     IS3EmailMessageClient s3EmailMessageClient,
     IEmailMessageInfoProcessor <TDomain> emailMessageInfoProcessor,
     ILambdaReportParserConfig config,
     ILogger log)
 {
     _s3EmailMessageClient = s3EmailMessageClient;
     _config = config;
     _log    = log;
     _emailMessageInfoProcessor = emailMessageInfoProcessor;
 }
Пример #4
0
        public void SetUp()
        {
            _emailMessageClient        = A.Fake <IS3EmailMessageClient>();
            _lambdaReportParseConfig   = A.Fake <ILambdaReportParserConfig>();
            _emailMessageInfoProcessor = A.Fake <IEmailMessageInfoProcessor <Domain> >();
            _log = A.Fake <ILogger>();

            _s3EmailMessageProcessor = new S3EmailMessageProcessor <Domain>(
                _emailMessageClient,
                _emailMessageInfoProcessor,
                _lambdaReportParseConfig,
                _log);
        }