public void SetUp()
        {
            _mimeMessageFactory               = A.Fake <IMimeMessageFactory>();
            _attachmentStreamNormaliser       = A.Fake <IAttachmentStreamNormaliser>();
            _aggregateReportDeserialiser      = A.Fake <IAggregateReportDeserialiser>();
            _denormalisedRecordConverter      = A.Fake <IDenormalisedRecordConverter>();
            _multiAttachmentPersistor         = A.Fake <IMultiAttachmentPersistor>();
            _multiDenormalisedRecordPersistor = A.Fake <IMultiDenormalisedRecordPersistor>();
            _mulitAggregateReportPersistor    = A.Fake <IMultiAggregateReportPersistor>();
            _log = A.Fake <ILogger>();

            _aggregateReportParser = new AggregateReportParserApp(_mimeMessageFactory,
                                                                  _attachmentStreamNormaliser, _aggregateReportDeserialiser, _denormalisedRecordConverter,
                                                                  _multiAttachmentPersistor, _multiDenormalisedRecordPersistor, _mulitAggregateReportPersistor, _log);
        }
Exemple #2
0
 public AggregateReportParserApp(IMimeMessageFactory mimeMessageFactory,
                                 IAttachmentStreamNormaliser attachmentStreamNormaliser,
                                 IAggregateReportDeserialiser aggregateReportDeserialiser,
                                 IDenormalisedRecordConverter denormalisedRecordConverter,
                                 IMultiAttachmentPersistor multiAttachmentPersistor,
                                 IMultiDenormalisedRecordPersistor multiDenormalisedRecordPersistor,
                                 IMultiAggregateReportPersistor multiAggregateReportPersistor,
                                 ILogger log)
 {
     _mimeMessageFactory               = mimeMessageFactory;
     _attachmentStreamNormaliser       = attachmentStreamNormaliser;
     _aggregateReportDeserialiser      = aggregateReportDeserialiser;
     _denormalisedRecordConverter      = denormalisedRecordConverter;
     _multiAttachmentPersistor         = multiAttachmentPersistor;
     _multiDenormalisedRecordPersistor = multiDenormalisedRecordPersistor;
     _multiAggregateReportPersistor    = multiAggregateReportPersistor;
     _log = log;
 }