Improve WCF services testability with simple Dependency Injection

added by roadan
1/30/2012 11:05:04 AM


Dependency injection is a great technique to reduce coupling between components and improve testability. Manually injected dependencies are dependencies which are passed manually to an object's constructor. When using WCF we depend on the WCF run time to create new instances of our service class. This solution provides a way to easily control service class instantiation for any type of WCF service