There are some cases where I'd like to run some integration tests against a fake implementation of a 3rd party server. I was thinking I could do this using HttpListener with some work. Implementing the service fake in ASP.NET would require deploying IIS and whatnot, more than I want to manage just to set up a test. I recall there's a few people on this alias who have looked at some of the alternative web frameworks out there, like Nancy (https://github.com/thecodejunkie/Nancy). Are there any that could be recommended for setting up test doubles? Maybe I server I can run for the duration of a single test, perhaps even declaring the service implementation inline in the test?
In one case I want to simply record requests made to an URL... I think HttpListener is fine for that, I can record what I need there. In other cases I'd want to listen to a particular path, verify headers/request path+body, then send back a hard-coded response. -- You received this message because you are subscribed to the Google Groups "Seattle area Alt.Net" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/altnetseattle?hl=en.
