This worked great. I ended up putting a static property on my custom ValidateIsUniqueSometimes attribute to enable or disable it.
Thanks so much! -jt On Sep 10, 10:33 am, "Victor Kornov" <[EMAIL PROTECTED]> wrote: > Confirmed, that works. I've moved from ValidateIsUniqueAttribute later > anyways. > > On Wed, Sep 10, 2008 at 9:16 PM, Eric Hauser <[EMAIL PROTECTED]> wrote: > > > One way would be to create a new validation registry that mimics the > > behavior of CachedValidationRegistry, but ignores that particular > > validator. It is a little bit of cut and paste work becaused > > CachedValidationRegistry's methods are not virtual. Then in your test > > setup, you can do: > > > controller.Validator = new ValidatorRunner(new > > MyValidationRegistry()); > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
