WCFMock

A solution for unit testing WCF services
Download

WCFMock Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Freeware
  • Publisher Name:
  • Pablo Mariano Cibraro
  • Operating Systems:
  • Windows All
  • File Size:
  • 5 KB

WCFMock Tags


WCFMock Description

Many of the WCF services that we build today rely on the WCF context (OperationContext and WebOperationContext) for performing different things, specially REST services where the context is necessary for settings and getting Http status codes or headers. The fact that the WCF context does not expose interfaces or base classes complicates the unit testing a lot. In order to test a WCF service with what we have today, we have to either test the service as a black box (integration tests, which requires a lot of plumbing code to setup all the WCF infrastructure for the test, channels, host, client, etc) or create some wrappers to encapsulate the WCF context behavior. WCFMock was developed to be a solution for unit testing WCF services. It provides a set of useful classes that will help you to remove all the explicit dependencies with the operation context, and still provide a good way to mock them from unit tests.


WCFMock Related Software