Eh? http://nhcontrib.svn.sourceforge.net/viewvc/nhcontrib/trunk/src/NHibernate.Validator/src/NHibernate.Validator/Engine/ValidatorEngine.cs?revision=1243&view=markup
No virtuals ? -- Fabio Maulo El 04/08/2010, a las 21:09, "Jérôme Avoustin" <[email protected]> escribió: > Hi ! > > I'd like to use ValidatorEngine in my classes. > I inject a singleton instance to all these classes, thanks to Autofac. > But now I want to unit test my classes, and I can't find a way to mock > ValidatorEngine (yes ! I'm a mockist !) : no interface and no virtual > methods... like a .NET class in fact ! :) (Yes I know about Typemock > Isolator and mocks frameworks like that, but I think they encourage > bad design...) > > So, since MS did a reaaaaaally bad choice by not making methods > virtual by default (fu#*$ing sh%µ*t !!), is there a way, in NHibernate > Validator framework, to handle this ? > > Thanks ! > > Jérôme > > -- > You received this message because you are subscribed to the Google Groups > "nhusers" 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/nhusers?hl=en. > -- You received this message because you are subscribed to the Google Groups "nhusers" 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/nhusers?hl=en.
