DEV Community

Discussion on: Onion Architecture 🧅

Collapse
 
barrymcauley profile image
Barry McAuley

Hi, thanks for reading the article and for the great question!

The outer layer is reserved for things that change often outside of the applications core business logic that interact with it. In the case of the UI, it is a service in itself, it will have its own logic and tests which validate it behaves as expected. If you are looking to test the entire system then that would be an end-to-end test that would be performed.

The outer layers are easy to change / peel off but trying to change the core models for example and reassembling the onion? I don't think that will be easy!

I hope that answers your question