Exemplo n.º 1
0
 public SummarisationProcess(
     IGenericCollectionRepository genericCollectionRepository,
     IProviderSummarisationService <IEnumerable <SummarisedActual> > providerSummarisationService,
     ISummarisationDataOptions dataOptions,
     IFcsRepository fcsRepository,
     ILogger logger)
 {
     _logger = logger;
     _genericCollectionRepository  = genericCollectionRepository;
     _providerSummarisationService = providerSummarisationService;
     _fcsRepository = fcsRepository;
     _dataRetrievalMaxConcurrentCalls = 4;
     int.TryParse(dataOptions.DataRetrievalMaxConcurrentCalls, out _dataRetrievalMaxConcurrentCalls);
 }
Exemplo n.º 2
0
 private static SummarisationProcess NewService(
     IGenericCollectionRepository genericCollectionRepository = null,
     IProviderSummarisationService <IEnumerable <SummarisedActual> > providerSummarisationService = null,
     ISummarisationDataOptions dataOptions = null,
     IFcsRepository fcsRepository          = null,
     ILogger logger = null)
 {
     return(new SummarisationProcess(
                genericCollectionRepository ?? Mock.Of <IGenericCollectionRepository>(),
                providerSummarisationService ?? Mock.Of <IProviderSummarisationService <IEnumerable <SummarisedActual> > >(),
                dataOptions ?? Mock.Of <ISummarisationDataOptions>(),
                fcsRepository ?? Mock.Of <IFcsRepository>(),
                logger ?? Mock.Of <ILogger>()));
 }