Questions tagged [fluentvalidation]

Fluent Validation is an ASP.NET MVC integrated validation framework that allows the developer to set validation rules using expressions. It is testable and completely compatible with the inversion of control (dependency injection) pattern and TDD (test-driven development) technique.

Fluent Validation is an open-source, ASP.NET MVC / ASP.NET Core integrated validation framework that allows the developer to set validation rules using expressions. It is testable and completely compatible with the Inversion-of-Control (dependency injection) pattern and TDD (test-driven development) technique.

It is one of a number of validation options, including Data Annotations.

Visit the official website to learn more.

Source code can be found here.

1427 questions
-2
votes
1 answer

Using .Matches with regex for a char in fluent

I have a class called Transaction which contains a property named source Within the Transaction class I have some validation using FluentValidation, I am currently trying to validate the source property using regex however I'm having an issue …
JsonStatham
  • 9,770
  • 27
  • 100
  • 181
-3
votes
1 answer

How can I unit test a "greater than" validation created with fluent validation?

I have a property like the following: RuleFor(c => c.foo).GreaterThan(0); In the docs of fluent validation, they specify that if I cannot make use of "ShouldHaveValidationErrorFor" method, I could make some assertions with the "Validate"…
Rod Ramírez
  • 1,138
  • 11
  • 22
1 2 3
95
96