I (wrongly it would seem) deduced that it was virtual since it is declared in the IUnityContainer interface .... now I'm in fear of not knowing anything!! What is an interface if not a bunch of virtual members?
On Sep 8, 4:32 pm, Kenneth Xu <[email protected]> wrote: > Hi Bill, > > > Okay, what am I talking about!? > > > Resolve<T> is a virtual member. > > How sad is it that there is no online API doc for Unity and the P&P > team want me to download an msi install file! I hope no other patterns > this approach at least. > > Anyway I downloaded a copy of Unity.dll from somewhere else and opened > it up in Reflector. > > No! it is not virtual as you can always expect from P&P, again hope > you don't pattern this :) > > The method is defined in the UnityContainerBase: > > public T Resolve<T>() > { > return (T) this.Resolve(typeof(T)); > > } > > and it finally calls > > public abstract object Resolve(Type t, string name); > > which you can stub if you use partial mock. > > HTH --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Rhino.Mocks" 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/rhinomocks?hl=en -~----------~----~----~----~------~----~------~--~---
