webformsmvp

Issue With RhinoMocks - Can't Mock Return

Hello, I'm having a strange error trying to create a unit test. I'm trying to mock IPresenterFactory of the WebFormsMvp framework to force the return of a presenter. So I'm mocking it as: var view = ..; var presenter = new TestPresenter(view); var factory = mock.Stub<IPresenterFactory>(); factory.Expect(i => i.Create(null, null, null...

Managing ViewState in WebFormsMVP

Hi, yesterday i read a very good article about ViewState in ASP.NET. Currently we are using WebFormsMVP to allow better testability in our project. The framework does presenter binding in OnInitComplete and relies heavily on DataBind expressions e.g. <asp:Label Text="<%#Model.FirstName%>" runat="server" /> As i understand above ar...

ASP.NET WebFormsMVP PageDataSource Events Executing Twice For Unknown Reason

The problem is SelectMethod and other actions execute twice. This has been difficult to isolate, as it only occurs on a larger solution, and not in simpler demo applications. //.ascx <asp:FormView runat="server" DataSourceID="userSource" DefaultMode="Edit"> <EditItemTemplate> <mvp:PageDataSource id="userSource" SelectMethod="GetUse...

Does anyone have an insight into ASP.NET WebFormsMVP?

Recently I ran into this open source project ASP.NET WebformsMVP. It seems like an alternative to asp.net mvc and also a quick way to introduce testability into an existing webforms applications. (without having to go through the pain of rewriting a bunch of code to make it work for asp.net mvc) Of couse community support and open-sour...