Refactoring: parameterize constructor(weblogs.asp.net)
submitted by
gpeipman(3145) 2 years, 11 months ago
In legacy code you may find classes with constructor where some objects are created and initialized. These classes are not easily testable because they depend on other classes and therefore when you unit test these classes they may also throw exceptions of classes they depend on. In these cases we can use parameterize constructor refactoring.
|category: C#
|Views: 310
tags:
C# another
Everyones tags:
Your Tags: