skip to the main content area of this page
Patterns and Practices

ModelViewPresenter


Unity IoC Dependency Injection and ASP.NET Model-View-Presenter

The Unity IoC Container can be used in your ASP.NET Web Applications to provide dependency injection, especially when using Model-View-Presenter. There are several ways that one can use Unity to wire-up the presenter class and its dependencies to the ASP.NET view. In this example, I will use a Page Base Class that accesses the UnityContainer on the HttpApplication Class and uses Unity to create an instance of the Presenter Class associated with the view.

Read More

MVP Bundle Screencast - WCSF v2.0 Model View Presenter Design Pattern

The MVP Bundle in WCSF v2.0 provides guidance on the Model View Presenter Design Pattern used with and without the Web Client Software Factory. This MVP Bundle Screencast discusses the guidance bundle in-depth by discussing the pros and cons of both MVP quickstart examples, differences between Supervising Controller and Passive View, the advantages of using the guidance package for automation and built-in dependency injection services using ObjectBuilder, the ObjectContainerDataSource Control, new Page and UserControl Base Classes to hide dependency injection, and 3rd party Mock Frameworks and dependency injection tools to help with testing and dependency injection.

Read More

MVP Bundle Could Use Mock Framework and Service Locator Guidance

The MVP Bundle in the Web Client Software Factory v2.0 offers guidance on the Model-View-Presenter Pattern in your asp.net applications. It has a nice overview and comparison of Supervising Controller and Passive View MVP, View-Presenter Communications using delegation and event-based approaches, as well as using mocks for testing. Given this bundle is more focused on educating the customer on the MVP Pattern as opposed to WCSF implementations, I would love to see guidance on the use of Mock Frameworks as opposed to hand coded mocks. Here are some thoughts on the use of Rhino Mocks as well as a Service Locator using the quickstart example in the MVP Bundle.

Read More

MVP Bundle Released in WCSF v2.0

Microsoft Patterns and Practices released the MVP Bundle as part of the Web Client Software Factory ( WCSF ) v2.0. The MVP Bundle provides guidance on how to implement Model-View-Presenter in your applications, explains differences between Passive View and Supervising Controller, discusses the ObjectContainerDataSource Control for helping with Model-View-Presenter, and offers sample unit tests for testing the view. You can find automation for implementing MVP in you ASP.NET Applications in the Composite Web Client Automation Guidance Bundle.

Read More

ASP.NET MVC Framework Compared To Web Client Software Factory ( WCSF )

With the upcoming release of the Microsoft ASP.NET MVC Framework, one might wonder how it compares to the Web Client Software Factory ( WCSF ) and its use of Model-View-Presenter Pattern. Two big points in favor of the ASP.NET MVC Framework: Re-Use of Views and the Front-Controller as opposed to the Application Controller.

Read More

Model-View-Presenter and Model-View-Controller Comparisons

With the Model-View-Presenter Pattern being a part of the SCSF and WCSF, and the Model-View-Controller Pattern being released as part of the ASP.NET MVC Framework, one might need more clarification and a comparison of the two design patterns.

Read More

Using Rhino Mocks to Test the Model-View-Presenter Pattern in WCSF

When using the Model-View-Presenter Pattern in WCSF one can use a good mocking tool, like Rhino Mocks, to test the Presenter Class and its interaction with the View and Model by setting expectations via mocks and testing to see that those expectations are satisfied in your tests.

Read More

RealTimeSearchMonitor Control for Live GridView Filtering and Searching in ASP.NET

The RealTimeSearchMonitor Control in the WCSF v2.0 Search Bundle provides real-time filtering and searching for a GridView in ASP.NET. Here is an example used on PnPGuidance to filter posts using the Model-View-Presenter Pattern.

Read More

ObjectContainerDataSource Using GridView and ASP.NET MVP ( Model View Presenter )

When using ASP.NET Model View Presenter with a GridView Control the SqlDataSource and ObjectDataSource Controls will not work. Instead, you can use the ObjectContainerDataSource in the WCSF that is more ASP.NET MVP Friendly. Here is how it works on PnPGuidance.

Read More

ASP.NET MVC Framework Mentioned by Scott Guthrie at Alt.Net Conference

Scott Guthrie discussed and presented the ASP.NET Model View Controller ( MVC ) Framework that his team is working on at the Alt.Net Conference. This is the same ASP.NET MVC Framework he showed off at the MVP Summit in 2007.

Read More

Web Client Software Factory and Enterprise Library Sample Screencast

This screencast highlights Web Client Software Factory and Enterprise Library 3.1 Features included in the WCSF 1.1 and EntLib 3.1 Sample I created and made available for download.

Read More

Web Client Software Factory Sample - Validation, Data Access, Policy Injection, Model-View-Presenter

A Web Client Software Factory Sample that shows business object validation, data access to SQL Server Express Database, the policy injection application block, model-view-presenter, and dependency injection.

Read More

View-Presenter Pattern in Web Client Software Factory Screencast

This screencast discusses the optional View-Presenter Pattern that can be used in the Web Client Software Factory to make testing easier and promote the separation of business logic and presentation.

Read More

Composite Web Application Block and ObjectBuilder Dependency Injection

This screencast discusses the Composite Web Application Block used in the Web Client Software Factory. Part II focuses on Dependency Injection using ObjectBuilder and the Composite Web Application Block.

Read More

Web Client Software Factory Composite Web Application Block Part I Screencast

This screencast discusses the Composite Web Application Block used in the Web Client Software Factory. Part I focuses on the role of the Composite Web Application Block during Application Startup.

Read More

Topics



Popular Tags



External Topics