Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Design for Unit testable
Message
De
02/04/2009 14:47:47
 
 
À
02/04/2009 07:42:19
Information générale
Forum:
ASP.NET
Catégorie:
Conception classe
Divers
Thread ID:
01392535
Message ID:
01392823
Vues:
33
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform