private ReferenceInputDataMapperService NewService(
     IZipArchiveFileService zipArchiveFileService = null,
     IFileService fileService = null)
 {
     return(new ReferenceInputDataMapperService(
                zipArchiveFileService,
                fileService,
                Mock.Of <ILogger>()));
 }
 private DesktopReferenceDataMapperService NewService(
     IZipArchiveFileService zipArchiveFileService = null,
     IDesktopReferenceDataMapper <IReadOnlyCollection <LARSLearningDeliveryKey>, IReadOnlyCollection <LARSLearningDelivery> > larsLearningDeliveryMapperService = null,
     IFileService fileService = null)
 {
     return(new DesktopReferenceDataMapperService(
                zipArchiveFileService,
                larsLearningDeliveryMapperService,
                fileService,
                Mock.Of <ILogger>()));
 }
Example #3
0
 public DesktopReferenceDataMapperService(
     IZipArchiveFileService zipArchiveFileService,
     IDesktopReferenceDataMapper <IReadOnlyCollection <LARSLearningDeliveryKey>, IReadOnlyCollection <LARSLearningDelivery> > larsLearningDeliveryMapperService,
     IFileService fileService,
     ILogger logger)
 {
     _zipArchiveFileService             = zipArchiveFileService;
     _larsLearningDeliveryMapperService = larsLearningDeliveryMapperService;
     _fileService = fileService;
     _logger      = logger;
 }
        public ReferenceInputDataMapperService(
            IZipArchiveFileService zipArchiveFileService,
            IFileService fileService,
            ILogger logger)
        {
            _zipArchiveFileService = zipArchiveFileService;
            _fileService           = fileService;
            _logger = logger;

            _fileNameRef = new Dictionary <Type, string>
            { // Map from the data type to the filename that stores it in the zip file
                { typeof(MetaData), DesktopReferenceDataConstants.MetaDataFile },
                { typeof(LARSStandard), DesktopReferenceDataConstants.LARSStandardsFile },
                { typeof(LARSLearningDelivery), DesktopReferenceDataConstants.LARSLearningDeliveriesFile },
                { typeof(LARSFrameworkDesktop), DesktopReferenceDataConstants.LARSFrameworksFile },
                { typeof(LARSFrameworkAimDesktop), DesktopReferenceDataConstants.LARSFrameworkAimsFile },
                { typeof(Postcode), DesktopReferenceDataConstants.PostcodesFile },
                { typeof(DevolvedPostcode), DesktopReferenceDataConstants.DevolvedPostcodesFile },
                { typeof(McaGlaSofLookup), DesktopReferenceDataConstants.DevolvedMcaGlaSofFile },
                { typeof(Organisation), DesktopReferenceDataConstants.OrganisationsFile },
                { typeof(EPAOrganisation), DesktopReferenceDataConstants.EPAOrganisationsFile },
                { typeof(Employer), DesktopReferenceDataConstants.EmployersFile },
            };
        }