Please explain the responsibilities of the presenter and of the business logic, and their interaction in MVP passive view. Can the business logic(is it the same as model?) modify the view? Or will it pollute the MVP passive view design? How exactly should presenter use the underlying services?
0
votes
2 Answers
0
votes
If you have business logic in the view, how would you test it? That is one thing you should always ask yourself first. So any business logic should be handled in a Presenter or Service that presenter uses. You can send Dto to the view, with additional flags that would tell view how to modify itself. But setting these flags should be done outside of the view.
0
votes
I wrote an article that seems to describe exactly what you are referring to. http://coding.infoconex.com/post/(MVP)-Model-View-Presenter-Passive-View.aspx