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
-~----------~----~----~----~------~----~------~--~---