DI patterns and antipatterns
Dependencies can be injected in a consumer class using different patterns and injecting them into a constructor is just one of them. While there are some patterns that can be followed for injecting dependencies, there are also some patterns that are recommended to be avoided, as they usually lead to undesirable results. In this section, we will examine only those patterns and antipatterns that are somehow relevant to Ninject features. However, a comprehensive study of them can be found in Mark Seemann's book, Dependency Injection in .NET.
Constructor Injection
Constructor Injection is the most common and recommended pattern for injecting dependencies in a class. Generally this pattern should always be used as the primary injection pattern unless we have to use other ones. In this pattern, a list of all class dependencies should be introduced in the constructor.
The question is what if the class has more than one constructor. Although Ninject's strategy for selecting...