public Validator <T> Ensure(Predicate <T> condition, string errorMessage) { Action accumulate = () => AccumulatedErrors.Add(errorMessage); On <T> .Values(Items) .WhenEachNot(condition) .Then(accumulate); return(this); }
public static OnSingle <object> Value(object value) { return(On <object> .Value(value)); }