Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Fake it easy with Fluent Validation

$
0
0

Hi,

 

I am trying to use fake it easy to mock the fluent validation call. But as the Validate method in the FLuent Validation has parameters with default values the lambda expression fails.

A.CallTo(() => fakeAccountValidator.Validate(A<Account>.Ignored, ruleSet:"Post")).Returns(new ValidationResult());

 

Do u have any workaround or thoughts on this?

 

Regards,

prasanna


Viewing all articles
Browse latest Browse all 1917

Trending Articles



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