clean-code-dotnet
clean-code-dotnet copied to clipboard
ShowList funtion in DRY section does not return a list
ShowList funtion should return an object of List<EmployeeData>, currently does not return anything
public List<EmployeeData> ShowList(Employee employees) { foreach (var employee in employees) { var expectedSalary = employees.CalculateExpectedSalary(); var experience = employees.GetExperience(); var githubLink = employees.GetGithubLink(); var data = new[] { expectedSalary, experience, githubLink };
render(data);
}
}
currently does not return anything
All examples do not return a result and should not return. So, error in samples signatures - need change from List to void.