Commented Unassigned: Pass validation instance along .SetValidator() [7157]
Good evening,What I am missing with the current .SetValidator(..) implementations is a way to pass along / work with the validation context's instance of T - is there any way to do this? E.g. that...
View ArticleCommented Unassigned: Pass validation instance along .SetValidator() [7157]
Good evening,What I am missing with the current .SetValidator(..) implementations is a way to pass along / work with the validation context's instance of T - is there any way to do this? E.g. that...
View ArticleNew Post: Less aggressive validation on startup
I am looking for some input on how to tone down errors when showing a new record in a form. When a new record is created and validated all required fields will have a red boarder and if the field has...
View ArticleNew Post: FluentValidation: RuleSet unit testing
I created this class below to help me validate Rule Sets. I didn't test it a lot, but it works for me.public static class ValidationTestExtension { public static void...
View ArticleNew Post: Less aggressive validation on startup
Hi This isn't really something I can help with I'm afraid. FluentValidation is completely agnostic from any sort of UI technology - you'd be better off asking on a WPF forum as I can only really answer...
View ArticleCommented Unassigned: Pass validation instance along .SetValidator() [7157]
Good evening,What I am missing with the current .SetValidator(..) implementations is a way to pass along / work with the validation context's instance of T - is there any way to do this? E.g. that...
View ArticleClosed Unassigned: Pass validation instance along .SetValidator() [7157]
Good evening,What I am missing with the current .SetValidator(..) implementations is a way to pass along / work with the validation context's instance of T - is there any way to do this? E.g. that...
View ArticleNew Post: MustAsync() instead of Must()
Does it make any difference if you call ValidateAsync instead?
View ArticleNew Post: FluentValidation: RuleSet unit testing
This is an old thread. The built-in TestHelper classes already have support for RuleSets. There's an optional ruleSet parameter in the ShouldHaveValidationErrorFor/ShouldNotHaveValidationErrorFor...
View ArticleNew Post: PropertyValidator - Create a BaseValidation class for custom error...
peagaah good workaround. I was facing off exactly this problem.
View ArticleNew Comment on "Custom"
I have few simple rules defined in RuleFor() statements. If they pass I want to execute complex validation using AbstractValidator.Custom. Do I have to repeat all the validation checks from RuleFor()...
View ArticleNew Post: Source Not Found error for AbstractValidator.cs
Hi, I have same issue. It is requesting source from: c:\Projects\FluentValidation\src\FluentValidation\TestHelper\ValidatorTester.cs Which directory I do not have. J.
View ArticleNew Post: Source Not Found error for AbstractValidator.cs
Doesn't appear to be an issue with FluentValidation itself - probably a configuration issue within visual studio. Make sure you have debugging of external code disabled in the debugging preferences.
View ArticleNew Post: Chaining Rules with multiple When
I have a property that has multiple rules that need to be applied. But each rule has a condition for when to apply the rule to the property. I've defined it as...
View ArticleNew Post: Chaining Rules with multiple When
By default, a When condition applies to all previous validators in the chain, so this isn't what you want. Your first validator (the BetweenInclusive) has 3 Whens applied, because you call When 3...
View ArticleNew Post: Chaining Rules with multiple When
Thank you. I had a feeling that would be the case.
View Article