Re: Unit Testing objects registered with PerWCFOperation

2015-06-01 Thread Scott Ferguson
I came up with a solution, for anyone that may stumble upon this in the future. Basically, I fire up a true instance of the web service when the Integration Tests startup. Then I create a Channel and set CUT to that. None of my tests had to change, just changed the base. It's also nice, b/c

Unit Testing objects registered with PerWCFOperation

2015-05-27 Thread Scott Ferguson
Hello, I have a WCF application and all objects are registered with a LifeStyle of PerWCFOperation. This works great in Production, and support all my concurrency needs. The issue is I have Integration Tests that can no longer access the Service classes, yielding an exception of: Could