Model View Presenter (MVP) Bundle
Cannot resolve release macro, invalid id.Click here to see the documentation.
What's the value of this guidance?
- Provides guidance on how MVP to promotes testability and separation of concerns within the UI
- Illustrates how to implement MVP with standard ASP.NET
- Illustrates how to implement MVP with ASP.NET and the Composite Web Application Block
What is the concept?
Traditional ASP.NET web apps contain User Interface (UI) logic within the code-behind of the page. This makes that logic hard or impossible to unit test; frequently, it leaves the UI in a brittle state, where changes to the UI often break the logic.
The Model-View-Presenter (MVP) pattern provides a way for developers to separate out the UI logic into a form where it is easier to test. Additionally, the separation makes the UI-centric business logic less prone to break as changes are made to the UI.
In the implementation of the Model-View-Presenter pattern, there are several different approaches, including Passive View and Supervising Controller. This bundle provides guidance on the usage of each approach.For more information, click here to see the MVP FAQ
What are some scenarios to consider using MVP?
- Unit testing User Interface logic
- Separating View from UI logic
What kind of web solutions is this guidance appropriate for?
- ASP.NET 2.0 solutions
- ASP.NET 2.0 solutions using the Composite Web Application Block
Who should use this bundle?
This bundle is for Developers and Architects who are interested in improving the testability of the user interface.
What is in the bundle?
- MVP QuickStart: source code to demonstrate how to implement the MVP pattern
- MVP QuickStart with Composite Web Application Block: source code to demonstrate how to implement MVP using the Composite Web Application Block
- Library: Contains the binaries from Enterprise Library and the Web Client Software Factory required to run the QuickStart.
- Acceptance Tests: Automate tests that can be executed to walk you through the MVP functionality.
- Unit Tests: Automated unit tests in Visual Studio.
- Documentation: Documentation explaining the MVP Quickstart, and the associated patterns.
What needs to be installed?
.NET Framework 3.5 Bundle
- Microsoft Visual Studio 2008 (Professional or Team System to run the unit test) / .NET Framework 3.5
- Microsoft ASP.NET 3.5
.NET Framework 2.0 Bundle
- Microsoft Visual Studio 2005 (Team Suite or Team Edition to run the unit test) / .NET Framework 2.0
- Microsoft ASP.NET 2.0
- Install all prerequisites for the bundle.
- Execute the bundle installer.
- Read and accept the EULA.
- Specify the destination folder.
Click here to be taken to the list of known issues