New Post: FluentValidation, Fody Validar and WPF....nested validation
Great, I'm glad it's working for you. Jeremy
View ArticleNew Post: Validating single rule if the first rule fails.
This is done in latest github commit!!https://github.com/JeremySkinner/FluentValidation/issues/65
View ArticleCreated Unassigned: FluentValidation not working for a null property [7216]
I'm using `FluentValidation` with `IDataErrorInfo`, and I have a validator defined as follows: public class StsInfoValidator : AbstractValidator<StsInfo>{ public StsInfoValidator(){ RuleFor(x...
View ArticleNew Post: Code Analysis oddity?
Hi, I have several validators defined like this: public class SearchValidator : AbstractValidator<SearchModel> { public SearchValidator() The classes are being picked up by the CA1710 Code...
View ArticleNew Post: Code Analysis oddity?
Yes, just ignore it. It's because AbstractValidator implements IEnumerable. Also, please note that FluentValidation has moved to github, so if you have any further questions please post them on the...
View ArticleNew Post: How to reuse validator for a base class?
I the code below I have Base class and its 2 children: ChildA and ChildB. There are validators for Base class and for its children. But the idea is use Base class validator form Children validators....
View ArticleNew Post: How to reuse validator for a base class?
public class BaseValidator<T> : AbstractValidator<T> where T: Base { public BaseValidator() { RuleFor(data => data.Age).GreaterThan(18).WithMessage("The age must be greater than 18...
View ArticleCreated Unassigned: Collection Validation design request [7217]
Hi,I have this object:```class Person{ public List<string> Names { get; set; } ...}```and would like to define validation rule that validates each name on empty string, and outputs following...
View ArticleNew Post: Problem when validate entity with CascadeMode
Hi, I have the same problem as originally posted and I think the feature is not implemented correctly. I'd also expect the validation to stop for the given instance of validator across all 'RuleFor'...
View ArticleCreated Unassigned: Overload for ShouldHaveChildValidator() test method,...
Given the following models and validation rules:```//modelspublic class Person{ public string FirstName {get; set; } public string LastName {get; set;} public bool HasAddress {get; set;} public Address...
View ArticleEdited Unassigned: Overload for ShouldHaveChildValidator() test method,...
Given the following models and validation rules:```//modelspublic class Person{ public string FirstName {get; set; } public string LastName {get; set;} public bool HasAddress {get; set;} public Address...
View ArticleEdited Unassigned: Overload for ShouldHaveChildValidator() test method,...
Given the following models and validation rules:```//modelspublic class Person{ public string FirstName {get; set; } public string LastName {get; set;} public bool HasAddress {get; set;} public Address...
View ArticleNew Post: How to associate a rule with more than one property
Hi there. I am facing the same thing. I want to higlight multiple input controls when a certain rule fails. I know that you can assign a custom object to a rule and it would be nice to be able to have...
View ArticleNew Post: Is There an Easier Way to Verify The Reason For Validation Failure?
I have a question regarding testing a specific rule for a property triggered a failure in the validation. Has there ever been any thought to adding "expected message" to the test extensions? Example......
View ArticleNew Post: IOC Issue - Ninject
Hi I am getting an error with trying to create a generic IOC. I have a ValidationService which will be used to validate my models:public class ValidationService : IValidationService { private readonly...
View ArticleNew Post: IOC Issue - Ninject
Hi, looks like this is an issue with your configuration with Ninject - I'm afraid I can't help with that. You'd need to ask the Ninject team for help.Please note that FluentValidation moved to github a...
View ArticleNew Post: Understanding dependent rules
Dear Jeremy, I have been reading about dependent rules here:https://github.com/JeremySkinner/FluentValidation/issues/65 From my understanding, a dependent rule will execute only if the preceding rules...
View ArticleNew Post: Understanding dependent rules
Hi Michael, FluentValidation has moved to GitHub - in future please post your questions over there rather than on codeplex: https://github.com/jeremyskinner/fluentvalidation/issues So at the moment...
View ArticleNew Post: Check a property is unique in list using FluentValidation
I am trying to ensure that a list has unique SSN's. I am getting the "Property name could not be automatically determined for expression element => element. Please specify either a custom property...
View ArticleNew Post: Check a property is unique in list
I am trying to ensure that a list has unique SSN's. I am getting the "Property name could not be automatically determined for expression element => element. Please specify either a custom property...
View Article