public AppsMonthly(
     ICsvFileService csvFileService,
     IFileNameService fileNameService,
     IAppsMonthlyPaymentsDataProvider appsMonthlyPaymentsDataProvider,
     IAppsMonthlyModelBuilder appsMonthlyPaymentModelBuilder,
     ILogger logger,
     IReportDataPersistanceService <AppsMonthlyPayment> reportDataPersistanceService,
     IAppsMonthlyPersistenceMapper appsMonthlyPersistenceMapper)
 {
     _csvFileService  = csvFileService;
     _fileNameService = fileNameService;
     _appsMonthlyPaymentsDataProvider = appsMonthlyPaymentsDataProvider;
     _appsMonthlyPaymentModelBuilder  = appsMonthlyPaymentModelBuilder;
     _logger = logger;
     _reportDataPersistanceService = reportDataPersistanceService;
     _appsMonthlyPersistenceMapper = appsMonthlyPersistenceMapper;
 }
Ejemplo n.º 2
0
 private Reports.AppsMonthly.AppsMonthly NewReport(
     ICsvFileService csvFileService   = null,
     IFileNameService fileNameService = null,
     IAppsMonthlyPaymentsDataProvider appsMonthlyPaymentsDataProvider = null,
     IAppsMonthlyModelBuilder appsMonthlyPaymentModelBuilder          = null,
     ILogger logger = null,
     IReportDataPersistanceService <AppsMonthlyPayment> reportDataPersistanceService = null,
     IAppsMonthlyPersistenceMapper appsMonthlyPersistenceMapper = null)
 {
     return(new Reports.AppsMonthly.AppsMonthly(
                csvFileService ?? Mock.Of <ICsvFileService>(),
                fileNameService ?? Mock.Of <IFileNameService>(),
                appsMonthlyPaymentsDataProvider ?? Mock.Of <IAppsMonthlyPaymentsDataProvider>(),
                appsMonthlyPaymentModelBuilder ?? Mock.Of <IAppsMonthlyModelBuilder>(),
                logger ?? Mock.Of <ILogger>(),
                reportDataPersistanceService ?? Mock.Of <IReportDataPersistanceService <AppsMonthlyPayment> >(),
                appsMonthlyPersistenceMapper ?? Mock.Of <IAppsMonthlyPersistenceMapper>()));
 }