By user10139630 on Qer 02, 2011
Been working on writing unit tests for my business logic and one major hurdle which I faced is to handle external dependencies. Though mocking objects is an obvious solution, if your project is complex and the objects to be mocked are complexly wired, then mock object injection becomes a very interesting challenge.
Found a very nice article which suggests few interesting ideas to achieve the same. This should really help in planning your unit tests.