예제 #1
0
 public Job(string jobName, Employer employer, Location location, PositionType jobType, CoreCompetency jobCoreCompetency) : this()
 {
     Name              = jobName;
     EmployerName      = employer;
     EmployerLocation  = location;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
 }
예제 #2
0
        // TODO: Add the two necessary constructors.

        /*        Code a second constructor that takes 5 parameters and assigns values to name, employerName, employerLocation, jobType, and jobCoreCompetency.Also, this constructor should call the first in order to initialize the id field.
         */
        public Job(string jobName, string erName, string erLocation, string jobType, string jobCoreCompetency) : this()
        {
            Name              = jobName;
            EmployerName      = new Employer(erName);
            EmployerLocation  = new Location(erLocation);
            JobType           = new PositionType(jobType);
            JobCoreCompetency = new CoreCompetency(jobCoreCompetency);
        }