Sprint Planner Helper – Session 8
February 12, 2009
This hour almost entirely was reading. I didn’t not feel comfortable yet with terms Repository and Service, or how they relate to each other.
Also I feel that I have looked to much at the architecture of ASP.NET MVC Storefront Starter Kit. I have incorporated stuff that I didn’t thought to much about – stupid, but I did it anyway.
But after a while I found this introduction to DDD and it explained some things for me. Here is how I understand the two fore-mentioned concepts:
- A Repository are classes and methods that is used to load stuff from a data store. They are often written in a way that is easily mocked or replaced during testing.
- A Service is used to hold a process or a flow through a business logic that does not fit well on a class in the domain model. They are stateless...