【发布时间】:2014-04-25 18:08:43
【问题描述】:
这是我第一次尝试实现洋葱架构。
AppService -> folder for the abstractions for the entire Application
Business -> Business logic using the abstractions in the Core project
DataService -> folder for abstractions that are implemented in the DataAccess project
Model -> Entities used by the application
WebService -> folder for abstractions that are implemented in the WebAccess project
- 上面放置的文件夹是否正确?
- DependencyResolution 项目的位置是否在 Domain 文件夹中?
- 基础架构中的每个项目是否都应包含一个 DependencyRegistrar 文件,该文件将核心项目中的接口与它所包含的项目中的实现一起注册?
- WebApi项目是否应该放在Presentation->Api中?是演示文稿吗?
- 我应该将每个项目的所有单元测试都放在“Tests”文件夹中吗?
提前致谢。
【问题讨论】: