示例#1
0
        public KynResultParser(long eventId, string corpCode, long archiveId, string kynDirectoryPath, ISettings settings, ILogger logger, ICustomerRepository customerRepository,
                               IRepository <BasicBiometric> basicBiometricRepository, IEventCustomerRepository eventCustomerRepository, long uploadedBy,
                               ILipidParserHelper lipidParserHelper, ICustomerService customerService)
        {
            _kynDirectoryPath = kynDirectoryPath;
            _eventId          = eventId;
            _archiveId        = archiveId;
            _corpCode         = corpCode;

            _testResultService = new Service.TestResultService();
            _mediaRepository   = new MediaRepository(settings);

            var location = _mediaRepository.GetKynIntegrationOutputDataLocation(eventId);

            _kynIntegrationOutputDataPath = location.PhysicalPath;

            location        = _mediaRepository.GetScannedDocumentStorageFileLocation(eventId);
            _eventFilesPath = location.PhysicalPath;

            _resultParserHelper = new ResultParserHelper();

            _customerRepository = customerRepository;
            _logger             = logger;
            _kynAppLipidParser  = new KynAppLipidParser(_logger, BiomarkerTagName, NameAttrString, ValueAttrString, lipidParserHelper);

            _eventCustomerScreeningAggregates = new List <EventCustomerScreeningAggregate>();

            _basicBiometricRepository = basicBiometricRepository;
            _eventCustomerRepository  = eventCustomerRepository;
            _uploadedBy = uploadedBy;

            _customerService = customerService;
        }
 public KynAppLipidParserTester()
 {
     DependencyRegistrar.RegisterDependencies();
     _kynAppLipidParser = new KynAppLipidParser(IoC.Resolve <ILogManager>().GetLogger("LogFile"), TagforBiomarker,
                                                "name", "value", IoC.Resolve <ILipidParserHelper>());
 }