Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing with Web Services

Status
Not open for further replies.

grande

Programmer
Feb 14, 2005
657
CA
Hi all,

I'm writing an ASP.Net 3.5 MVC application, and I'm wondering the best way to test code with webservices. Obvisouly I don't need to call the webservice for each test. Is there a way to stub it out? What's the recommended way of doing this?

As an aside question, I'm currently using the built-in testing suite. Is there a better one out there?

-------------------------
Matt Grande
C# Master.
Ruby on Rails Admirer.
ActionScript Student.
JavaScript Hate-Monger.
 
the webservice is just an implementation detail. it should only take a http request and pass it along to a controller. if it does more than that, refactor the web service so it's only purpose is to delegate the request to the controller.

Is there a better one out there?
define better :)

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top