tags:

views:

477

answers:

3

I need to make tests for my webservice project. In my webservice Interface there is a method named loginuser with string params username and password. It uses C#, WCF, and Visual Studio.

How do I to test that loginuser method in my webservice returns correct results?

A: 

WCFMock, a mocking framework for WCF services.

Mocking web services with SoapUI

joe
A: 

You might also be interested in WCFStorm for testing your WCF service

+2  A: 

You appear to be talking about 2 different things:

  • Mocking your web service
  • Testing your web service

For mocking of a web / wcf service, we normally create a service that implements the same interface, but returns hard coded values.

For testing web services we do it in two ways:

  • Test the dll directly for functionality
  • Test the service via the proxy layer, of the project that is to use the service
Shiraz Bhaiji