public static CapturedConstraint Length(this IHaveConstraintFactory self, int length) => self.Capture(new ExactStringLengthJsonConstraint(length));
public ValidatorConstraintFactory(ConstraintFactory pre, string verb) : base(pre, verb) { Be = new ConstraintFactory(this, "Be"); Have = new ConstraintFactory(this, "Have"); }
public static CapturedConstraint LengthBetween(this IHaveConstraintFactory self, int minLength, int maxLength) => self.Capture(new StringLengthJsonConstraint(minLength, maxLength));
public static CapturedConstraint MaxLength(this IHaveConstraintFactory self, int maxLength) => self.Capture(new MaxStringLengthJsonConstraint(maxLength));
public ValidatorConstraintFactory(ConstraintFactory pre, string context) : base(pre, context) { Be = new ConstraintFactory(this, "be"); Have = new ConstraintFactory(this, "have"); }
public static CapturedConstraint Value(this IHaveConstraintFactory self) => self.Capture(new HasValueConstraint());
public static CapturedConstraint MinLength(this IHaveConstraintFactory self, int minLength) => self.Capture(new MinLengthConstraint(minLength));