Пример #1
0
        public Validator <T> Ensure(Predicate <T> condition, string errorMessage)
        {
            Action accumulate = () =>
                                AccumulatedErrors.Add(errorMessage);

            On <T> .Values(Items)
            .WhenEachNot(condition)
            .Then(accumulate);

            return(this);
        }
Пример #2
0
 public static OnSingle <object> Value(object value)
 {
     return(On <object> .Value(value));
 }