I have a set of WCF services implemented using dependency injection for testing purposes.
Basically these services sometimes call each other, so on my Unit Tests I could mock both repositories and WCF services just using interfaces and injecting them as components in the service constructors.
This is great as I can test these services properly without any dependency.
I have also implemented my own proxies in order to avoid using Visual Studio service reference (which creates a lot of rubbish), so I'm using ChannelFactory CreateChannel method.
I'm a bit worried about what happens on the live enviroment.
What happens is that my WCF service that calls another WCF service has only one instance of this external component injected in the constructor and because of this I cannot dispose this object once used.
Is this going to create troubles? Will garbage collector take care of it? Will connections remain open? Is this approach wrong?
Thanks a lot.