New Post: CascadeMode set Inside Validator .ctor
Thank you Jeremy for the clarification. I apologize for my misunderstanding; *it is* stated clearly on the documentation. I guess I read too quickly.
View ArticleNew Post: When Problem.
Hello Jeremy, Sorry for the delay! I got stuck on something. Fluent Validation's ShouldHaveValidationErrorFor and ShouldNotHaveValidationErrorFor are only for NUnit? Anyway I did the following:...
View ArticleNew Post: When Problem.
Thanks for this. I'll take a look at what's wrong later in the week. To answer your question, no, the shouldhavevalidationerror methods are not specific to NUnit. They will work with any testing...
View ArticleSource code checked in, #69da8c51cdcc
Fix custom rules with nested top level conditions
View ArticleNew Post: When Problem.
This should be fixed in the latest commit. Please build from source and give it a try and let me know if you run into any issues. Jeremy
View ArticleNew Post: Avoid FV Resources. How?
Hello, I am using Fluent Validation in a project. When I build it I get, on Bin, many culture folders with Fluent Validation resources. Can't I avoid this? And can I use my own resources? Thank You,...
View ArticleNew Post: When Problem.
I am going to give it a try. I will post here any error I find. Thank you, Miguel
View ArticleNew Post: Avoid FV Resources. How?
FluentValidation comes with errors localized into several different languages. You don't need to include these satellite assemblies in your own project though - just remove the other culture folders...
View ArticleNew Post: Avoid FV Resources. How?
Hello Jeremy, I tried everything I could imagine. I deleted all files from bin and obj folders and cleaned the project. No luck ... I removed the Fluent Validation package from the project ... Now the...
View ArticleNew Post: Avoid FV Resources. How?
The satellite assemblies in the culture folders will only be copied to your project if they exist in the location from which FluentValidation is referenced. If you've installed FV via NuGet, then this...
View ArticleNew Post: How to convert this code to use Fluent Validation
Hello, I am currently moving away from DataAnnotations to Fluent Validation. I had no problem to do the migration of code except here for my unit testing helper. I have created this helpers to...
View ArticleNew Post: How to convert this code to use Fluent Validation
If anyone interested in it, here is how I solved it: public static void ValidateModel(this Controller controller, object model) { controller.ModelState.Clear(); var validationResults =...
View ArticleNew Post: SetValidator not working
Hi Jeremy, We have many ViewModels that share many of the same properties (FirstName, Email, etc.). We would like to have re-usable validations for such properties in order to apply kind of a DRY...
View ArticleNew Post: Integration with IDataErrorInfo and INotifyDataErrorInfo
Thought this example might help expand on Jeremy's last point: http://www.pearson-and-steel.co.uk/how-to-use-fluentvalidation-to-display-validation-errors-and-warnings/ Stuart
View ArticleNew Post: Execute all rule sets
I have an object for which I have created a validator. All of the rules for this validator are grouped in rule sets. I'm able to validate certain properties by executing an individual rule set,...
View ArticleNew Post: Execute all rule sets
Found the ruleSet: "*" option. All is working well now.
View ArticleCommented Issue: ValidationFailure constructors cause...
When running any unit test under a code coverage tool (e.g. TestDriven.NET "Test With" NCover or VS Coverage) which contains a call to either of the ValidationResult constructors, I get a...
View ArticleCommented Issue: ValidationFailure constructors cause...
When running any unit test under a code coverage tool (e.g. TestDriven.NET "Test With" NCover or VS Coverage) which contains a call to either of the ValidationResult constructors, I get a...
View Article