public void SetUp() { _lambdaAggregateReportParserConfig = A.Fake <ILambdaAggregateReportParserConfig>(); _s3Client = A.Fake <IAmazonS3>(); _log = A.Fake <ILogger>(); _s3EmailMessageClient = new S3EmailMessageClient(_lambdaAggregateReportParserConfig, _s3Client, _log); }
public void SetUp() { _lambdaAggregateReportParseConfig = A.Fake <ILambdaAggregateReportParserConfig>(); _emailMessageClient = A.Fake <IS3EmailMessageClient>(); _aggegateReportParser = A.Fake <IAggregateReportParserAsync>(); _log = A.Fake <ILogger>(); _s3EmailMessageProcessor = new S3EmailMessageProcessor(_lambdaAggregateReportParseConfig, _emailMessageClient, _aggegateReportParser, _log); }
public void SetUp() { _lambdaAggregateReportParserConfig = A.Fake <ILambdaAggregateReportParserConfig>(); A.CallTo(() => _lambdaAggregateReportParserConfig.RemainingTimeTheshold).Returns(TimeSpan.FromSeconds(10)); _sqsClient = A.Fake <IAmazonSQS>(); _messageProcessor = A.Fake <IMessageProcessor>(); _log = A.Fake <ILogger>(); _queueProcessor = new QueueProcessor(_lambdaAggregateReportParserConfig, _sqsClient, _messageProcessor, _log); }
public S3EmailMessageProcessor(ILambdaAggregateReportParserConfig config, IS3EmailMessageClient s3EmailMessageClient, IAggregateReportParserAsync aggregateReportParser, ILogger log) { _config = config; _s3EmailMessageClient = s3EmailMessageClient; _aggregateReportParser = aggregateReportParser; _log = log; }
public QueueProcessor(ILambdaAggregateReportParserConfig config, IAmazonSQS sqsClient, IMessageProcessor messageProcessor, ILogger log) { _config = config; _sqsClient = sqsClient; _messageProcessor = messageProcessor; _log = log; _receiveMessageRequest = new ReceiveMessageRequest { WaitTimeSeconds = 0, MaxNumberOfMessages = 1, QueueUrl = _config.SqsQueueUrl }; }
public S3EmailMessageClient(ILambdaAggregateReportParserConfig config, IAmazonS3 s3Client, ILogger log) { _config = config; _s3Client = s3Client; _log = log; }