Let\'s say I have some class with dependency injected: public class SomeBusinessCaller { ILogger logger;
I wrote some sort of console client for a simple application. To be more flexible, I thought it would be nice to only depend on java.io.Input-/OutputStream, instead of accessing System.in/out directly
I have a wcf service and on the client i have: var service = new ServiceReference1.CACSServiceClient()
I\'m using C# with Microsoft\'s Unity framework. I\'m not quite sure how to solve this problem. It probably has something to do with my lack of开发者_运维百科 understanding DI with Unity.
According to Misko Hevery that has a testability blog.Developers should avoid \'holder\', \'context\', and \'kitchen sink\' objects (these take all sorts of other objects and are a grab bag of collabo