#MVP Architecture Enforcement : Use Assemblies or Just Use Namespaces ?

1 messages · Page 1 of 1 (latest)

split heath
#

It's a small project, but for the sake of it, I'd like to put MVP architecture enforcement in place by making an assembly for each layer and then be able to write a test that ensures that the architecture is being respected (see attached code snippet). However, Presenter needs to know about stuff in Model, and vice versa — same between Presenter and View. This would create circular references which aren't allowed for assemblies. I know that creating intermediary interfaces is a good way to break circular references between classes, but I'm not quite sure how that's done with assemblies. Thanks in advance for your help and clarifications.

pallid sun
#

guess you add an assembly for events

#

and both view and model send everything there

#

and then events send data to presenter, which manipulates the model and updates view

split heath
#

@pallid sun Basically this:

pallid sun
#

yup

#

and view is connected to what player sees

split heath
#

yep

#

I'll try that