What’s new?
Testability has been kind of an issue for us with code that relies on the static Validator class. To improve the situation, I added IValidationEngine as an alternative. Validator is still fully backwards compatible
- Addition of the IValidationEngine interface
- The DefaultValidationEngine requires an instance of IValidatorProvider for its constructor
- Validator.SetValidatorProvider() has been marked obsolete. You can still use it, but it will have the side-effect of over-setting Validator.ValidationEngine to a new instance of DefaultValidationEngine.
- Added a NinjectModule to Simple.Validation.Ninject that configures the DefaultValidationEngine and DefaultValidatorProvider automatically.
Posted on August 28, 2012, 2:44 pm By crmckenzie
No comments yet Categories: Open Source Projects, Simple.Validation, Validation Tags: Open Source Projects, Simple.Validation, Validation