We are using continuous integration (with help of CruiseControl.NET) in My current project.
Some of the components connects to WCF-services. The continuous integration includes automated unit tests with NUnit.
We needed to mock the services as we don't want to install and run any services on the build server.
I have used Rhino Mocks in previous projects so I decided to give it a try.
As always, I started to google for any experience out there, and found this blog which describes exactly what I wanted to do!
http://kashfarooq.wordpress.com/2008/11/29/mocking-wcf-services-with-rhinomocks/
Use the WCF self hosting to host a dummy class that expose the service interface. The methods does not need to be implemented as they are mocked with Rhino Mocks.
Saturday, February 7, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment