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)); }
public void PrePopulateUlnCache(IList <long?> ulns, CancellationToken cancellationToken) { _cache.GetUlnLookup(ulns, cancellationToken); }
public IEnumerable <long> GetUlnLookup(IEnumerable <long?> searchUlns, CancellationToken cancellationToken) { return(_referenceDataCache.GetUlnLookup(searchUlns, cancellationToken)); }