title: Injecting data to a WCF service
body: <p>I have WCF services structured like suggested by <a href="http://www.dnrtv.com/default.aspx?showNum=122" rel="noreferrer">Miguel Castro</a>. This means that I have set everything up manually, and have a console application hosting my services using <a href="http://msdn.microsoft.com/en-us/library/system.servicemodel.servicehost.aspx" rel="noreferrer">ServiceHost</a> objects. </p>
  
  <p>I want to keep my service classes thin, and they are currently just passing on calls to behavior classes. My problem now is unit testing the service classes. I want to inject something to the classes as a constructor parameter such that I can mock this away and write proper isolated unit tests. The ServiceHost class doesn't seem to accept arguments, so my question is how I can inject data to the service classes - or can't I? </p>