Feature 1 – onboarding an employee
In our problem statement, we did not clearly define what happens when a new employee joins. We would detail that out now so that we have something meaningful to work with. Let's say, the following needs to happen when a new employee joins:
- Employee is awarded 21 sick leaves and 24 paid leaves
- A skill enhancement allowance of £1,000 is allocated
- Employee record is saved in database
First two items are clearly a part of business logic. We can say that this logic can live within the Employee
class. Third item is not a domain concern but more of an infrastructure concern. So we would want to push it out to one of the outer layers of onion architecture. It is difficult to say which layer this items belongs to exactly. ...
Get Learning NHibernate 4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.