Archive for June 14th, 2006

Unit Test : MVP vs PM

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.

MVP.pngPM.png

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.

 

 

Add comment June 14th, 2006


Calendar

June 2006
M T W T F S S
« May   Jul »
 1234
567891011
12131415161718
19202122232425
2627282930  

Posts by Month

Posts by Category


1