Esempio n. 1
0
 public ErrorMatcher(ValueOrErrorMatcher <T> matcher,
                     System.Action <System.Action <string> > addAction, bool isError)
 {
     _addAction = addAction;
     _matcher   = matcher;
     _isError   = isError;
 }
Esempio n. 2
0
 public ErrorMatcher(ValueOrErrorMatcher <T> matcher,
                     DelegateAction <DelegateAction <string> > addAction, bool isError)
 {
     _addAction = addAction;
     _matcher   = matcher;
     _isError   = isError;
 }
Esempio n. 3
0
 internal WhereForValue(DelegateFunc <T, bool> predicate,
                        DelegateAction <DelegateFunc <T, bool>, DelegateAction <T> > addPredicateAndAction,
                        ValueOrErrorMatcher <T> matcher, bool isUseless = false)
 {
     _predicate             = predicate;
     _addPredicateAndAction = addPredicateAndAction;
     _matcher   = matcher;
     _isUseless = isUseless;
 }
Esempio n. 4
0
 public ValueMatcher(ValueOrErrorMatcher <T> matcher,
                     DelegateAction <DelegateFunc <T, bool>, DelegateAction <T> > addPredicateAndAction,
                     DelegateAction <DelegateAction <T> > addAddDefaultValueAction,
                     bool isError)
 {
     _addDefaultValueAction = addAddDefaultValueAction;
     _matcher = matcher;
     _addPredicateAndAction = addPredicateAndAction;
     _isError = isError;
 }
 internal WithForValueActionHandler(T value, Action <Func <T, bool>, Action <T> > addPredicateAndAction,
                                    ValueOrErrorMatcher <T> matcher,
                                    bool isUseless)
 {
     _addPredicateAndAction = addPredicateAndAction;
     _matcher   = matcher;
     _isUseless = isUseless;
     if (isUseless)
     {
         return;
     }
     _values = new List <T>(3)
     {
         value
     };
 }
Esempio n. 6
0
 public static WhereForValue <T> Useless(ValueOrErrorMatcher <T> matcher)
 {
     return(new WhereForValue <T>(null, null, matcher, true));
 }