I have been reading up on the Onion architecture, and I have what I think is a simple question about how assembly dependencies should be arranged for a DI container to be able to wire everything up.
Assume a very simple solution that has the following structure:
UI => BL <= DAL
So the UI and DAL reference the BL, but have no knowledge of each other.
Also assume the BL has an interface called IDatabaseService, which is implemented in the DAL by DALDatabaseService.
The container would (presumably) be configured in the UI's entry point. Since the UI has no knowledge of the DAL, how can it register IDatabaseService to resolve to DALDatabaseService?