employee.getJobDescription().getResponsibilities().add(new ManagementResponsibility(employee.getDepartment()));But a Tell Don't Ask style forces us to state that explicitly:
employee.promoteToManager();
About Mock Objects, a technique for improving the design of code within Test-Driven Development
employee.getJobDescription().getResponsibilities().add(new ManagementResponsibility(employee.getDepartment()));But a Tell Don't Ask style forces us to state that explicitly:
employee.promoteToManager();
No comments:
Post a Comment