Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

publicclassLeaveService<br />{<br />privatereadonlyINotificationService notifications;<br /> <br Domain Driven Design 101


Published on

publicclassLeaveService{privatereadonlyINotificationService notifications; publicLeaveService(INotificationService notifications) {this.notifications = notifications; } publicvoidTakeLeave(Employeeemployee, DateTime start,DateTime end) {// do stuff this.notifications.Notify(employee, &quot;Leave approved.&quot;); }}Dependencies are injected at runtime

Published in: Technology, Business
  • Login to see the comments