Task 3: Complete the Job Class
Warning
Due to the fact that this code is being auto-graded as you work through it, make sure that you use any and all names for classes, variables, methods, etc provided to you in these directions.
Now open the Job
file and follow the TODO
prompts to remove the comment markers.
OOF! There are a lot of fields and properties declared and not much else.
- Code a constructor to initialize the
id
field with a unique value. This constructor should take no parameters. - Code a second constructor that takes 5 parameters and assigns values to
name
,employerName
,employerLocation
,jobType
, andjobCoreCompetency
. Also, this constructor should call the first in order to initialize theid
field. - Generate the
Equals()
andGetHashCode()
methods. Consider twoJob
objects equal when their id fields match.
Run TestTask3 tests
Uncomment the tests inside the TestTask3
class. Look for the TODO
s to help you find the multi-line comments marks.
Run your TestTask3
unit tests.
Refactor your code as needed.
Do not start Task 4 until you have passed all of Task 3’s auto-grading unit tests.
Tip
Now would be a good time to save, commit
, and push
your work up to GitHub.
On to Task 4 .