Search code examples
fubumvc

Integration Testing FubuMVC


I was looking at this example https://github.com/DarthFubuMVC/fubumvc/blob/master/src/FubuMVC.AspNetTesting/Http/can_read_response.cs and wondering how I can integration test fubu mvc.

What I want to do is give it my request or input model, and then all the behaviours and handlers executed, so I am given back just the view model or redirect i.e. I don't need it to render the view.

Suggestions please?


Solution

  • Look at the tests in the integration testing project in FubuMVC instead. If you can get away with it, it's much easier to use the Self Host capability instead. I suppose this could be my weekly blog post for the week.