Is it a code smell to inject a dependency and set one of its members to `this`?
Is it a code smell to inject a dependency and set one of its members to `this`?
Is it a code smell to inject a dependency and set one of its properties to your current instance? I set my code in this manner so I could completely isolate the service implementation. I have a series of test which all pass (including setting the StreamingSubscriber instance in the logic class).
For example
public class StreamingSubscriber { private readonly ILogic _logic; public…
View On WordPress











