public CachingValidatorSource(IValidatorSource other) { if (other== null) throw new ArgumentNullException("other"); _cache = new Cache<string, List<IValidator>>( StringComparer.OrdinalIgnoreCase, key => other.For(key).ToList()); }
public MessageValidator(IValidatorSource source) { _source = source; }
public CachingValidatorSourceTests() { _other = Substitute.For<IValidatorSource>(); _cached = new CachingValidatorSource(_other); }