public CustomerChecksService
        (
            ICustomerChecksInfoRepository checksInfoRepository,
            ISpiderDocumentInfoRepository documentInfoRepository,
            ISpiderFirstCheckService firstCheckService

        )
        {
            _checksInfoRepository   = checksInfoRepository;
            _documentInfoRepository = documentInfoRepository;
            _firstCheckService      = firstCheckService;
        }
        public static Task <ICustomerChecksInfo> UpdateLatestCheckIdAsync(this ICustomerChecksInfoRepository repository, string clientId, string apiType, string checkId)
        {
            switch (apiType)
            {
            case PepSpiderCheck.ApiType:
                return(repository.UpdateCheckIdsAsync(clientId, pepCheckId: checkId));

            case CrimeSpiderCheck.ApiType:
                return(repository.UpdateCheckIdsAsync(clientId, crimeCheckId: checkId));

            case SanctionSpiderCheck.ApiType:
                return(repository.UpdateCheckIdsAsync(clientId, sanctionCheckId: checkId));

            default:
                throw new InvalidOperationException();
            }
        }
Ejemplo n.º 3
0
 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);
 }