<@U0C2CG716> I didn't think objects could have a d...
# getting-started
s
@dalexander I didn't think objects could have a default parameter
d
Ah, sorry I missed the
object
as part of the definition. If you’re using singletons you have more limited dependency injection options. Probably something like a service locator pattern is what you’re looking for (and change what the locator returns during tests).
m
SomethingThatLogs() could be a factory that is aware of whether or not you are in a test.