PC Review


Reply
Thread Tools Rate Thread

how to best organize an MVP solution

 
 
Registered User
Guest
Posts: n/a
 
      10th Mar 2011
I have a question about how an MVP solution is best organized.

The solution contains three interfaces (model, view, presenter). There
are two concrete models and two concrete presenters. The solution is
currently organized as three projects: model, presenter and UI. The
model and presenter projects each contain the related abstract and
concrete types. The view interface is also in the presenter project.

After looking at the solution I'm thinking the abstract types should
all be in the same project, perhaps even in their own project. Such a
solution would contain interface, model, presenter and UI projects.
What constitutes best practices for organizing such a solution?

regards
A.G.
 
Reply With Quote
 
 
 
 
Registered User
Guest
Posts: n/a
 
      11th Mar 2011
On Thu, 10 Mar 2011 12:01:27 -0500, Big Steel <(E-Mail Removed)> wrote:

>On Thu, 10 Mar 2011 09:36:34 -0500, Registered User
><(E-Mail Removed)> wrote:
>> I have a question about how an MVP solution is best organized.

>
>
>> The solution contains three interfaces (model, view, presenter).

>There
>> are two concrete models and two concrete presenters. The solution is
>> currently organized as three projects: model, presenter and UI. The
>> model and presenter projects each contain the related abstract and
>> concrete types. The view interface is also in the presenter project.

>
>
>> After looking at the solution I'm thinking the abstract types should
>> all be in the same project, perhaps even in their own project. Such

>a
>> solution would contain interface, model, presenter and UI projects.
>> What constitutes best practices for organizing such a solution?

>
>I consider the presenter and the view as part of the UI so they have
>folders in the UI project to hold the classes and interfaces.
>

I'm looking at a situation where the same model-presenters will be
used by multiple web sites each with their own implementation of the
IView.

>A service layer project with a service class sits between the
>presenter and the model.
>
>The Service layer has an IService.


The purpose of this project was simply to use a single IView
implementation with multiple implementations of an abstract
Presentation type. There is no interest in completeness when writing
throw-away code

regards
A.G.
 
Reply With Quote
 
Registered User
Guest
Posts: n/a
 
      11th Mar 2011
On Thu, 10 Mar 2011 07:57:01 -0800, Peter Duniho
<(E-Mail Removed)> wrote:

>On 3/10/11 6:36 AM, Registered User wrote:
>> I have a question about how an MVP solution is best organized.

>

- snip -
>
>IMHO, the organization of the types in assemblies is somewhat orthogonal
>to the overall MVP design. It should instead relate to broader
>questions of where types _need_ to be, given your choice of assembly
>break-down.
>


- snip -

I kind of figured this but I've been wrong before. Thank you.

regards
A.G.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Organize" doesnt Organize Jake Microsoft Outlook Discussion 2 5th Sep 2008 12:17 AM
Conversion VS2005 Solution to VS2008 Solution sippyuconn Microsoft C# .NET 4 23rd May 2008 10:03 AM
How to organize projects in solution. Shimon Sim Microsoft C# .NET 0 22nd May 2007 03:44 AM
how do I organize my C++/CLI solution Scott W Microsoft VC .NET 4 25th May 2005 07:24 AM
rebuild solution automaticly each time im running the solution in the ide Daylor Microsoft Dot NET 1 24th Sep 2003 05:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:37 AM.