Bad DI - Configuring the IoC container in unit test projects

added by devtrends
7/21/2011 4:10:33 AM

261 Views

You will often hear people say that using IoC allows your code to be unit testable, and they are of course correct. If you are doing dependency injection correctly, you code will inherently be unit testable. The subtlety that needs to be understood is how DI aids unit testing. It is certainly not the use of an IOC container which should have absolutely no bearing on your unit testing code.


0 comments