public bool Execute(SupplementaryDataModel model)
 {
     return(model.ReferenceType != "LearnRefNumber" ||
            (model.ULN ?? 0) == 9999999999 ||
            _referenceDataCache.GetUlnLookup(new List <long?> {
         model.ULN ?? 0
     }, CancellationToken.None).Any(u => u.ULN == model.ULN));
 }
Пример #2
0
 public void PrePopulateUlnCache(IList <long?> ulns, CancellationToken cancellationToken)
 {
     _cache.GetUlnLookup(ulns, cancellationToken);
 }
Пример #3
0
 public IEnumerable <long> GetUlnLookup(IEnumerable <long?> searchUlns, CancellationToken cancellationToken)
 {
     return(_referenceDataCache.GetUlnLookup(searchUlns, cancellationToken));
 }