Geeks With Blogs

Michael Freidgeim's Blog MS .Net Development
When writing Integration Tests for  WCF Services, you have 2 options to access SUT(system under test)
1. Inproc – Test Classes are calling methods from application DLLs directly.
2. External – Tests are calling external services using client proxy with specified URL.

If you own the code of the service, the Inproc method is preferred as it is allow to test units rather  the whole object as black-box.

If your tests are external clients of the service determined by URL, you need to have the service installed somewhere, e.g. on the test server.
So you need to use your services URL to run your external tests.

I've asked our team in a future when creating new/modifying existing test methods to use inproc approach rather than external clients.

Posted on Saturday, August 17, 2013 11:42 AM | Back to top


Comments on this post: 2 options to write tests for WCF Services

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Michael Freidgeim | Powered by: GeeksWithBlogs.net | Join free