Hello all,
I am learning asp.net and have a REST based web service with name "WebHandler". This web service is usually hosted under IIS and all requests come to my Webhandler class. For functional test of my webservice, I usually run the webservice under IIS and then
write functional test code.
So everytime I run funtional test, I have to keep the webservice running under IIS. Is there a way that in the functionaltest code, I can somehow host the webservice programatically so that the webservice is part of same process (NO IIS is involved) ? Benefits
from this which I perceive is:
- If there is a bug in webservice code, I can update it on fly rather than compiling the new dll and placing it under IIS and restarting IIS.
Something like Self hosting WCF service for e.g.
using (ServiceHost host = new ServiceHos ...
Go to the complete details ...