public static ISpiderCheckResultDiff ComputeDiff(this ICheckPersonResultDiffService service, string apiType, ISpiderCheckResult current, ISpiderCheckResult previous) { switch (apiType) { case PepSpiderCheck.ApiType: return(service.ComputeDiffByPep(current, previous)); case CrimeSpiderCheck.ApiType: return(service.ComputeDiffByCrime(current, previous)); case SanctionSpiderCheck.ApiType: return(service.ComputeDiffBySanction(current, previous)); default: throw new InvalidOperationException(); } }
public SpiderFirstCheckService ( ICheckPersonResultDiffService diffService, ISpiderDocumentInfoRepository spiderDocumentInfoRepository, ICustomerChecksInfoRepository customerChecksRepository, ISpiderCheckService spiderCheckService, ISpiderCheckProcessingService spiderCheckProcessingService, ISpiderCheckResultRepository checkResultRepository, ILogFactory logFactory ) { _diffService = diffService; _spiderDocumentInfoRepository = spiderDocumentInfoRepository; _customerChecksRepository = customerChecksRepository; _spiderCheckService = spiderCheckService; _spiderCheckProcessingService = spiderCheckProcessingService; _checkResultRepository = checkResultRepository; _log = logFactory.CreateLog(this); }
public SpiderRegularCheckService ( IGlobalCheckInfoService globalCheckInfoService, ICheckPersonResultDiffService diffService, ISpiderDocumentInfoRepository spiderDocumentInfoRepository, ICustomerChecksInfoRepository customerChecksInfoRepository, ISpiderCheckService spiderCheckService, ISpiderCheckResultRepository spiderCheckResultRepository, ISpiderCheckProcessingService spiderCheckProcessingService, ILogFactory logFactory ) { _globalCheckInfoService = globalCheckInfoService; _diffService = diffService; _spiderDocumentInfoRepository = spiderDocumentInfoRepository; _customerChecksInfoRepository = customerChecksInfoRepository; _spiderCheckService = spiderCheckService; _spiderCheckResultRepository = spiderCheckResultRepository; _spiderCheckProcessingService = spiderCheckProcessingService; _log = logFactory.CreateLog(this); }