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

New Post: Fake it easy with Fluent Validation

$
0
0

Because of the optional parameters like ruleSet i am not able to mock the validator.

The reason for mocking the validator is because it has some DB calls.

http://blogs.ijw.co.nz/chris/index.php/2010/05/c-4-0-features-named-optional-parameters-uh-no-thanks/

"You can’t call a function that takes optional parameters from within a lambda which gets converted to an expression tree. Enjoy, a shiny new error message:

CS0854: An expression tree may not contain a call or invocation that uses optional arguments"

 


Viewing all articles
Browse latest Browse all 1917

Trending Articles



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