コード例 #1
0
 public static CapturedConstraint OfTypeString(this IBeConstraintFactory self)
 => self.Capture(new OfTypeStringConstraint());
コード例 #2
0
 public static CapturedConstraint OfTypeArray(this IBeConstraintFactory self)
 => self.Capture(new OfTypeArrayConstraint());
コード例 #3
0
 public static CapturedConstraint Integer(this IBeConstraintFactory self, bool strict = true)
 => self.Capture(new OfTypeIntegerConstraint(strict));
コード例 #4
0
 public static CapturedConstraint Boolean(this IBeConstraintFactory self, bool strict = true)
 => self.Capture(new OfTypeBooleanConstraint(strict));
コード例 #5
0
 public static CapturedConstraint In <T>(this IBeConstraintFactory self, params T[] args)
 => self.Capture(new InConstraint <T>(args));
コード例 #6
0
 public static CapturedConstraint Object(this IBeConstraintFactory self)
 => self.Capture(new OfTypeObjectConstraint());
コード例 #7
0
 public static CapturedConstraint NullOrEmpty(this IBeConstraintFactory self)
 => self.Capture(new NullOrEmptyConstraint());
コード例 #8
0
 public static CapturedConstraint GreaterOrEqualTo <TComparable>(this IBeConstraintFactory self, TComparable value) where TComparable : IComparable
 => self.Capture(new GreaterOrEqualToConstraint <TComparable>(value));
コード例 #9
0
 public static CapturedConstraint Defined(this IBeConstraintFactory self)
 => self.Capture(new IsDefinedConstraint());
コード例 #10
0
 public static CapturedConstraint EqualTo(this IBeConstraintFactory self, object value)
 => self.Capture(new EqualToConstraint(value));
コード例 #11
0
 public static CapturedConstraint In(this IBeConstraintFactory self, IEnumerable <string> values, StringComparer comparer)
 => self.Capture(new StringInConstraint(values, comparer));
コード例 #12
0
 public static CapturedConstraint EqualTo(this IBeConstraintFactory self, string value, StringComparer comparer)
 => self.Capture(new StringEqualsConstraint(value, comparer));
コード例 #13
0
 public static CapturedConstraint LessThan <TComparable>(this IBeConstraintFactory self, TComparable value) where TComparable : IComparable
 => self.Capture(new LessThanConstraint <TComparable>(value));
 public static CapturedConstraint Match(this IBeConstraintFactory self, Regex expression) => self.Capture(new MatchStringJsonConstraint(expression));
コード例 #15
0
 public static CapturedConstraint In <T>(this IBeConstraintFactory self, IEnumerable <T> values)
 => self.Capture(new InConstraint <T>(values));
 public static CapturedConstraint Equal(this IBeConstraintFactory self, string value, StringComparison comparison = StringComparison.Ordinal) => self.Capture(new StringEqualsJsonConstraint(value, comparison));
コード例 #17
0
 public static CapturedConstraint Defined(this IBeConstraintFactory self)
 {
     return(self.Capture(new IsDefinedJsonConstraint()));
 }