How bariskisir/fluent-validation-usage works
This is a small ASP.NET Web Forms example demonstrating employee validation with FluentValidation. A user submits the employee form; the click handler builds an Employee, invokes EmployeeValidator, then displays validation messages or a success message. The validator defines age, name, and email rules. Source excerpts show this flow, but the README does not document additional capabilities.
Main entry points: default.aspx.cs Submit handler · EmployeeValidator.cs Employee validator · default.aspx Employee form · Employee.cs Employee
Components 8
Web interaction
- Employee form
src/fluentValidation-test/default.aspx - Submit handler
src/fluentValidation-test/default.aspx.cs - Validation feedback
src/fluentValidation-test/default.aspx.cs
Validation domain
- Employee
src/fluentValidation-test/Employee.cs - Employee validator
src/fluentValidation-test/EmployeeValidator.cs
Other components
- User
- FluentValidation
- Validation result
Connections 8
- User → Employee form: enters details
- Employee form → Submit handler: dispatches submit
- Submit handler → Employee: populates fields
- Submit handler → Employee validator: invokes validation
- Employee validator → Employee: validates
- Employee validator → FluentValidation: uses rules API
- Employee validator → Validation result: returns result
- Submit handler → Validation feedback: renders outcome