My advice, validate against handlers as an option.
public class PersonValidationDef : ValidationDef<Person>
{
public PersonValidationDef()
{
Define(x=>x.Assoc).MustBe(MyMethodThatReturnABoolean);
}
}
The API seems to fine, but +1 for the Gustavo requeriment about the names.
Note: That was a change from NUnit to XUnit, they removed all: "Are" "Is" at
the beggining of the methods, is a silliness but helps.
On Wed, Feb 11, 2009 at 5:02 PM, Fabio Maulo <[email protected]> wrote:
> Do you have some advise about the API ?
> Check the first post from start to end, please.
> --
> Fabio Maulo
>
> >
>
--
Dario Quintana
http://darioquintana.com.ar
--~--~---------~--~----~------------~-------~--~----~
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.ar/group/nhcdevs?hl=en
-~----------~----~----~----~------~----~------~--~---