430 reputation
59
bio website
location
age
visits member for 3 years, 1 month
seen Jun 4 at 16:54

May
23
revised Is it a bad practice to modify code strictly for testing purposes
added 4 characters in body
May
22
awarded  Editor
May
22
comment Is it a bad practice to modify code strictly for testing purposes
DI is not the major question (i was only trying to give an example), the point was whether it would be OK to provide another method that originally wasn't intended to be created, only for the sake of testing.
May
22
comment Is it a bad practice to modify code strictly for testing purposes
You're right - Type or Assembly, the point was that the code should allow supplying that as a parameter, although it may seem that this functionality is there only to be used for testing...
May
22
revised Is it a bad practice to modify code strictly for testing purposes
added 8 characters in body
May
22
asked Is it a bad practice to modify code strictly for testing purposes
Nov
22
awarded  Popular Question
Oct
29
awarded  Student
Oct
29
awarded  Supporter