public static CapturedConstraint Length(this IHaveConstraintFactory self, int length) => self.Capture(new ExactStringLengthJsonConstraint(length));
 public static CapturedConstraint LengthBetween(this IHaveConstraintFactory self, int minLength, int maxLength) => self.Capture(new StringLengthJsonConstraint(minLength, maxLength));
コード例 #3
0
 public static CapturedConstraint Value(this IHaveConstraintFactory self)
 => self.Capture(new HasValueConstraint());
 public static CapturedConstraint MaxLength(this IHaveConstraintFactory self, int maxLength) => self.Capture(new MaxStringLengthJsonConstraint(maxLength));
コード例 #5
0
 public static CapturedConstraint MinLength(this IHaveConstraintFactory self, int minLength)
 => self.Capture(new MinLengthConstraint(minLength));