Tag Archives: WCF

Resources for Mocking WCF

Hey everyone,

Just a few links I came across for mocking WCF in case anyone else needs them.

This tutorial was great: http://weblogs.asp.net/cibrax/unit-tests-for-wcf

The only issue being that it was missing a few class definitions (IIncomingWebRequestContext and IOutgoingResponseContext). I got lucky and was able to find full code samples at the following links:

https://code.google.com/p/netfx/source/browse/trunk/Source/ServiceModel/Web/IIncomingWebRequestContext.cs?r=18

http://netfx.googlecode.com/svn-history/r28/trunk/Source/ServiceModel/Web/Wrappers.cs

Just in case these links ever go down:

http://pastebin.com/CjUMwhsG
http://pastebin.com/F1Fj9eRC