Hello all,

I want to use the ValidateIsUnique attribute, but that means when
testing my models I have to have bring up the entire database and init
activerecord etc. even when I'm not testing my persistence layer
which is slow and undesirable. I'm using ActiveRecordMediator based
repositories.

Is there any way around this?  Perhaps this is just an indicator that
"ValidateIsUnique" maybe doesn't belong in my domain models? It's a
database concern I guess, but it's terribly convenient to be able to
have it there and get the error message when I'm doing form
submission.

Any suggestions greatly appreciated.

Thanks,

-jt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" 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/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to