conwid / DependencyInjectionToolset

Other
12 stars 5 forks source link

DependencyInjectionToolset

Dependency injection is awesome. It helps you build code that is loosely-coupled, testable, maintainable. The code is clean and readable. And if set up properly, you might end up coding a lot less than without dependency injection.

Almost :) Because if you use constructor injection (and why wouldn't you if you apply the basic OO principles), you might end up creating a lot of constructors with a lot of parameters. While this is not a bad thing - after all this gives you an instant overview about the dependencies of a component - you do have to code a lot.

This tool helps you with that. Features currently include:

Install

Please check the license agreement for terms and conditions.

You can download the extension from the Visual Studio Gallery:
https://visualstudiogallery.msdn.microsoft.com/319cb092-4d7e-429a-894d-ac33e1e78c1b

Credits

Thanks for @trydis for publishing his version of the "Introduce and initalize field" feature. Check out his blog post at http://trydis.github.io/2015/01/03/roslyn-code-refactoring/

Also thanks for @varsi94 for helping out with the original version of the code.

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Pull requests and ideas are always welcome. :)