StockTraderRI - NewsArticle

Topics: Prism v4 - WPF 4
Feb 10, 2011 at 1:35 PM
Edited Feb 10, 2011 at 1:37 PM

Hello,

can anybody tell me why in StockTraderRI demo application the NewsArticle model class is placed to the Infrastructure project instead of the News module?? Is it best practice to place specific concrete model types to the infrastructure project? I thought that there should only be interfaces placed.. 

 

Best regards

Andreas

Feb 10, 2011 at 6:16 PM

Hi Andreas,

There is no special reason on why NewsArticle class is located on Infrastructure project.

On the other hand, in my opinion I think you are right about only have interfaces on Infrastructure and also is not the best place to allocate the concrete classes of your application. As you mentioned, these interfaces needs to be implemented on their Modules, in order to build a loosely coupled application.

Thanks,

Miguel Bronzovic
http://blogs.southworks.net/mbronzovic