I have been getting ready to use the Validator for a particular domain
using the ValidatorEngine.  What I did to familiarize myself with the
process of writing rules was to create some simple tests on lets say
object Foo.  Foo has two properties Age and Name.  I created a
validation definition for Foo called Rule1.  Rule1 has a one rule
using the ValidatateInstance Method that always returns false.  When I
run my initial test using the engine it runs as expected.  Now if I
create a second validation definition for Foo in another class called
Rule2.  Like Rule1, Rule2 has a single rule using the ValidateInstance
Method the always returns false.  I create a second test that
registers both Rule1 and Rule2 to the configuration.  When I run the
test Rule2 never gets called.  It would appear that you can only have
one validation definition for an object.  Is this true?  Perhaps I
should not be using Validator for this purpose.  Does anyone have any
advice?  Thanks...

-- 
You received this message because you are subscribed to the Google Groups 
"NHibernate Contrib - Development Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhcdevs?hl=en.

Reply via email to