I'm sure this is a common requirement. I have written an ASP.NET app but now I have testing requirements. Basically the application uses webservices and as such currently these are in the code. I need to be able to run the same aplpication using test URL's in as simple way as possible.
I was thinking I could put the URL's in the web.config and comment/uncomment the the variable as required.
I was thinking however how is this done in windows apps. I know that some applications, you specify on the command line when launching the env (e.g. prod, uat, prl) and the application then uses the relevant URL's - I presume this isnt done with if/else statements everywhere?
if(UAT){URL=app.settings["UATURL"]}
Any information on how this is done in a professional application for testing is appreciated.
ifstatements all over the place, put it into one manager class.