Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Design for Unit testable
Message
From
02/04/2009 14:47:47
 
 
To
02/04/2009 07:42:19
General information
Forum:
ASP.NET
Category:
Class design
Miscellaneous
Thread ID:
01392535
Message ID:
01392823
Views:
34
>Hi,
>What if the mock BO need to be passed or called by another BO? .NET will still referring to the method of type specified instead of new keyword one.

Hi,
I'm not sure I understand what you are asking - it sounds as if you want existing calls to the base class methods from other parts of the framework to be transparently diverted to a method in a sub-class. AFAIK that's not doable. I also don't see how having the base class method marked as virtual would have helped in that situation in the first place?
Regards,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform