In order to keep my web.config nice and clean, I've chosen to keep my validation in a separate configuration file. How do I load this file and use it to validate? I am not interested in using attributes.
My code has got me nowhere.
Book book = new Book();
book.Title = "asdasdasdaa";
var config = new FileConfigurationSource(@"C:\ValidationRules.config");
ValidationResults results = Validation.ValidateFromConfiguration(book, "RuleSet1");
As you can see, I'm finding it hard to connect the file configuration to actually validating something.
Also as a side question, Do I need unity to use the Validation API?