[MVC Turbine] FluentValidation blade

19 views
Skip to first unread message

Darren Cauthon

unread,
May 7, 2010, 12:07:27 AM5/7/10
to MVC Turbine
Hello,

I just wanted to announce that I posted a new blade to the source for
Fluent Validation integration. If you add a reference to
MvcTurbine.FluentValidation.dll, the blade will:

1.) Register all of your IValidator implementations with the service
locator, and
2.) Plug Fluent Validation into the MVC pipeline.

When MVC sees that you have a validator defined for an input model, it
will use your validator to validate the data and set model state. It
might sound like a lot, but there's hardly any code to it at all.

If you're interested in Fluent Validation, you can get more
information at the address below. I think it's a pretty nice library
that produces some very readable, testable validation code.

http://fluentvalidation.codeplex.com/

The code is up Github, currently at:
http://github.com/lozanotek/mvcturbine/tree/master/src/Blades/Fluent_Validation/

Let me know if you have any questions or comments, enjoy!


Darren

Darren Cauthon

unread,
May 24, 2010, 11:42:09 PM5/24/10
to MVC Turbine

Hey all, I finally got around to writing a blog post on the Fluent
Validation blade. My intent was to go beyond the code itself and
explain how MVC Turbine makes these types of integrations possible.
The link is below:

http://www.cauthon.com/2010/05/24/mvcturbine-fluentvalidation


Darren
> The code is up Github, currently at:http://github.com/lozanotek/mvcturbine/tree/master/src/Blades/Fluent_...
Reply all
Reply to author
Forward
0 new messages