MVC UI with Mock Controllers?

Posted by Jaimal Chohan on Stack Overflow See other posts from Stack Overflow or by Jaimal Chohan
Published on 2010-04-01T22:08:38Z Indexed on 2010/04/01 22:13 UTC
Read the original article Hit count: 370

I'm working with Aspnet MVC 2 (R2) and at the same time playing about with the whole alt.net stack. One of this things I would like to be able todo is basically write my Views, and be able to interact with them without having to write the controller logic.

E.g. I have a view that displays a list of orders and I can click on an order which redirects to another view where I can edit it, but I don't want to get into the nitty gritty of writing the code to actually get a list of orders, or update an existing ordes.

I want to do so I can write UI tests in WaitN/AOT/Selenium without having to worry about whats happening underneath, and also It would help drive my controller logic on a need basis as opposed to guess work based of of the supplied screenshots

How do you guys accomplish this atm? Can you provide links ot useful blog posts/tools/framework/articles with information on how to accomplish this

p.s. I primarly use Rhino Mocks & NUnit but can happliy change to other tools if they support the above better.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about mocking