Error!
Success!

Configuration Settings Are A Dependency That Should Be Injected

0
kicks

Configuration Settings Are A Dependency That Should Be Injected  (Unpublished)

Dependency Injection does not just apply to obvious dependencies such as repositories and logging components. It is very important to inject ALL dependencies including the less obvious ones. In my experience, one of the most overlooked areas is configuration. Many people seem perfectly happy to extract settings from config deep within their code. This is plain wrong. If you need to reference an AppSetting in your business logic, inject it. If you need a connection string in your data access code, inject that too.


Kicked By:
Drop Kicked By: