AnthonySteele / MvcRouteTester

A library for unit testing ASP MVC route tables for both Web and API Routes
Apache License 2.0
105 stars 43 forks source link

Is it possible to test AJAX routes? #59

Open vtortola opened 9 years ago

vtortola commented 9 years ago

Hi!

I have routes that returns different contents based on if the request is AJAX or not, so the same path may map to different controller and action depending on the "X-Requested-With" request header. The application indicates this fact with the "Vary:X-Requested-With" response header.

Is there any way of test routes this with MvcRouteTester? Like adding an additional parameter to simulate an AJAX request?

Thanks.