Re: [TFUI] Is MVP right for ASP.Net?

"Rob Park" <[email protected]> Tue, 10 Jan 2006 13:17:32 -0700
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <[email protected]>
Looks very interesting.  We'll give it a look.

Otherwise, after some further discussion with a co-worker and some more MVP 
research, it seems to us that MVP is well suited when you need to interact 
with view, so with a single aspx or say with a window or dialog.  Anyway, we 
mostly have fill in this form, submit, show results style navigation at this 
point, so we have a home grown "controller" under that.  Its primary method 
is [Map Execute(Map params)] and it essentially implements the command 
pattern and uses Spring to get the right command.  A next step we're going 
to code the mapping of result to actual next view page name into the spring 
context as well.

In any case, we're still not yet testing our view well if at all.  It looks 
like we need to go to NunitAsp to get this going.  (Does monorail have a 
good view testing stategy?)

.rob.


>From: "Dan Bunea" <[email protected]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: Re: [TFUI] Is MVP right for ASP.Net?
>Date: Tue, 10 Jan 2006 17:33:10 +0200
>
>Hi,
>
>If you like to have a clean and simple separation of concerns in .NET for
>web applications, take a look at MonoRail: www.castleproject.org which is
>inspired from Ruby On Rails. We're very happy with it,
>
>Thanks,
>Dan Bunea
>http://danbunea.blogspot.com
>
>
>
>On Tue, 10 Jan 2006 15:16:08 -0000, Rob Park <[email protected]> wrote:
>
> > I'm more familiar with Struts and testing actions and forms, then
> > delegating biz work to the Model. The last few months however, I've
> > been in C# and aspx.
> >
> > So just wondering if MVP is a decent stategy for separation between
> > navigation and model, etc with aspx.
> >
> > We have 1 project where the code behind for our pages will say "on
> > click" make a call to a "presenter" passing any parameters along
> > with its name. The name is mapped via Spring.net into a "command"
> > of some sort. The return of the call is a Map, where the code
> > behind will redirect to map["next"].
> >
> > Any critique? Suggestions?
> > Is this more of a Controller than a Presenter? Or just a Command
> > pattern?
> >
> > Thanks.
> >
> > .rob.
> >
> >
> >
> >
> >
> > To unsubscribe, email:
> > TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
> >
> >
> >
> > YAHOO! GROUPS LINKS
> >
> > Visit your group "TestFirstUserInterfaces" on the web.
> >
> > To unsubscribe from this group, send an email to:
> > TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> >
>
>
>
>--
>Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>
>
>To unsubscribe, email:
>TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
>
>Yahoo! Groups Links
>
>
>
>
>
>




To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/