posts - 32, comments - 118, trackbacks - 0, articles - 0


Unit Test : MVP vs PM

Posted on 2006-06-08 04:38  yysun  阅读(1805)  评论(0编辑  收藏

Smart Client Software Factory team is recommending the "Model View Presenter" pattern. They have created Guidance Package for using this pattern.

From my experience, the "Presentation Model" pattern is better. When I asked if SC-SF can also include Guidance Package for PM, it looks like people may think MVP is more suitable for unit tests than PM. Read this thread.

To me, PM is even easier for unit testing, because it is less coupled.


I have refactored the CAB Smart Part Quick Start project to use MVP and PM patterns and have also created unit test projects for comparison.

Source Code:

They can be added to the CAB Smart Part Quick Start solution.