IoC Containers and Domain Driven Design

后端 未结 3 527
时光取名叫无心
时光取名叫无心 2021-02-02 15:50

I\'ve been searching for guidance for using IoC containers in domain driven design. Evan\'s book unfortunately doesn\'t touch on the subject. The only substantial guidelines I c

3条回答
  •  心在旅途
    2021-02-02 16:11

    IOC containers are invaluable when designing unit-testable code and are orthogonal to DDD. You could create your own implementation of factory and builder patterns if you want...by why go through the trouble?

    Absolutely. Use an IOC container that's just powerful enough to meet you specific requirements; no more, no less.

提交回复
热议问题