title: Creating testable WCF service without OperationContext
body: <p>I've implemented a subscribe/publish (for my own enjoyment) WCF service which works reasonably well. Like all blogs and books I've seen they all use <code>OperationContext</code> to get the clients callback address. After a bit of reading, due to many people saying not to use <code>OperationContext</code>, I found myself not being able to create proper unit tests. Yet I haven't been able to find an alternative. I suppose the subscribe method could accept a parameter for it to provide its own address? I could see the code being testable from an intergration test stand point of view but not for unit testing since <code>OperationContext</code> would always be null.</p>
  
  <p>How do I get the clients endpoint when they subscribe to my service without using <code>OperationContext</code>?</p>
  
  <p>Little bit of an aside but where is a good WCF resource with testing in mind when showing code samples? There are tons of blogs out there reiterating the same code without providing sample test cases.</p>
  
  <p>Thank you.</p>