Unit Testing complex validations (study)
Some validations are complex. Let’s explore how .NET data annotation validation and FluentValidation can be combined and (unit) tested.
Read the article Unit Testing complex validations (study)Some validations are complex. Let’s explore how .NET data annotation validation and FluentValidation can be combined and (unit) tested.
Read the article Unit Testing complex validations (study)Ever since I wrote the blog “Is One Of” and “Is Not One Of” validation attributes, I’ve wondered if there is anything better for class validation. I mean: validating individual properties is fine, but usually the more interesting stuff is the validation of a combination of members.
Read the article Let’s combine Data Annotation Validation with FluentValidationI love attribute validation! They can be used for a myriad of things. In .NET Core MVC we use them to validate models that come into our controllers. In one of our projects we kept running into the same thing: we need to validate a value against an array of pre-defined values. So we wrote some base validation attributes.
Read the article “Is One Of” and “Is Not One Of” validation attributes