MVP Rocks

I’ve been working MVP for a day now and I just love it. Complete seperation of data and user interface. I’ve been creating 2 models, one built with Ado.NET (which sucks by the way) and one built with Hera (the ORM tool at work).

I found a few ways to implement MVP though. Some still have a reference from the View to the Presenter. I removed this reference by using events on the View that the Presenter listens on.

By using Rhino.Mocks I also created a complete test case for my presenter with a mocked View and Model to check that everything goes as it should.

This is actually the first program where I could test a program with a user interface :)

I’ll see that I can post some information later today and put up the code for anybody who wants it.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>