Fluent Validation – Unit Testing the Validators
Business rules can be complicated and hence it becomes immensely important to automate the testing of those rules. The library, Fluent Validation, provides APIs to support the automated testing of…
Business rules can be complicated and hence it becomes immensely important to automate the testing of those rules. The library, Fluent Validation, provides APIs to support the automated testing of…
In previous article, we have seen how RuleSets can be used to trigger different validations in different contexts. In this article, we are going to discuss about another pattern which…
I have been writing only about fluent validation in past few articles. There will be 2-3 articles more about fluent validation. Below is the list of all previous articles in…
In previous article, we have seen how the conditional validation logic can be added using fluent validation library. Real world applications may also need to connect to database for performing…
Many times, in real world applications, the input validation is not straight forward. Sometimes the validation rules may change depending on certain conditions. In this article, we are going to…
Many times the object has a property which allows various implementations of the same interface. Or sometimes, the collection of a given interface may have objects of different types which…
Here in this article we are going to discuss about cascade modes supported by fluent validation. There are two modes - rule level cascade mode and class level cascade mode.…
This article will explain how to register fluent validators in dependency injection containers. For demonstrating it is going to use the .NET's default dependency injection container. Registering Specific Validator Type…
In previous articles, we have discussed how to add fluent validations to the API project, we have seen how placeholders can be used and how error messages can be customized.…
There are variety of ways in which business validations are applied. Some projects may have used various design patterns to build custom layers which would help to keep all the…