Quantcast
Channel: Fluent Validation for .NET
Browsing all 1917 articles
Browse latest View live

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 Article


New 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 Article


New 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 Article

New Post: When Problem.

I will be waiting then ... Thank You Jeremy, Miguel

View Article

Source code checked in, #69da8c51cdcc

Fix custom rules with nested top level conditions

View Article


New 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 Article

New 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 Article

New Post: When Problem.

I am going to give it a try. I will post here any error I find. Thank you, Miguel

View Article


New 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 Article


New 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 Article

New 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 Article

New 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 Article

New 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 Article


New 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 Article

New 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 Article


New 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 Article

New Post: Execute all rule sets

Found the ruleSet: "*" option. All is working well now.

View Article


New Post: Using ValidatorOptions.PropertyNameResolver

 

View Article

Commented 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

Commented 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
Browsing all 1917 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>