Reputation: 321
I am working on a MVC project and trying to use TDD with DDD and finding it's not that straight forward. Below are some of the topics i am struggling on:-
Getting some experienced hand input would be lovely and example(s) would be really helpful. I am using outside in approach as i know it will be MVC project and I will be using SQL. Thanks in advance
Upvotes: 2
Views: 452
Reputation: 2337
If you do DDD, then start with your domain (Entities, Domain services). Use TDD to help you design your entities and domain services. You should focus 80% of your energy here.
Controllers, Views are really just plumbing sitting on top of your Application services. TDD won't yield much benefit in this area. Instead consider writing End to End test using Selenium for example to make sure things are correctly configured and holding together, but do not test business logic using End to End tests.
Upvotes: 6