Пример #1
0
 IActionWithHandler <IActionMatcher <T1, T2, T3>, T1, T2, T3> IActionMatcher <T1, T2, T3> .With(T1 value1,
                                                                                                Any value2,
                                                                                                T3 value3)
 {
     _withValues = new List <EitherTuple <T1, T2, T3> > {
         EitherTuple.Create <T1, T2, T3>(value1, value2, value3)
     };
     return(this);
 }
Пример #2
0
 public bool Equals(Any other) => true;
Пример #3
0
 public EitherTuple(Any value1, Any value2)
 {
     _value1 = new Either <T1, Any>(value1);
     _value2 = new Either <T2, Any>(value2);
 }
 public EitherTuple(T1 value1, Any value2, Any value3)
 {
     _value1 = new Either <T1, Any>(value1);
     _value2 = new Either <T2, Any>(value2);
     _value3 = new Either <T3, Any>(value3);
 }
Пример #5
0
 IFuncWithHandler <IFuncMatcher <T1, T2, TResult>, T1, T2, TResult> IFuncMatcher <T1, T2, TResult> .With(Any value1,
                                                                                                         Any value2)
 {
     _withValues = new List <EitherTuple <T1, T2> > {
         EitherTuple.Create <T1, T2>(value1, value2)
     };
     return(this);
 }
Пример #6
0
 IActionWithHandler <IActionMatcher <T1, T2>, T1, T2> IActionMatcher <T1, T2> .With(Any value1, Any value2)
 {
     _withValues = new List <EitherTuple <T1, T2> > {
         EitherTuple.Create <T1, T2>(value1, value2)
     };
     return(this);
 }
Пример #7
0
 IFuncWithHandler <IFuncMatcher <T1, T2, TResult>, T1, T2, TResult> .Or(Any value1, Any value2)
 {
     _withValues.Add(EitherTuple.Create <T1, T2>(value1, value2));
     return(this);
 }