I have an n-tier MVC app with an MVC5 frontend, and a WebAPI2 backend.
I am normally calling between the two using RestSharp
For testing/development purposes (primarily to be able to use glimpse or other profiling tools end-to-end) I want to be able to easily flip a switch to use the application in a single tier mode.
I could manually make calls to the appropriate WebAPI controller classes and methods, but that would be a lot of duplication of logic.
Since I already have URLs built up with all of the parameters correctly set, is there a way to call the controller (or some factory that can pick between controllers) and say "Hey, pretend this just came in over the wire and process it for me"