public override string ToString() { string result = "\n"; result += $"ID: {Id}\n"; if (string.IsNullOrEmpty(Name)) { result += $"Name: Data not available\n"; } else { result += $"Name: {Name}\n"; } result += $"Employer: {Employer?.ToString() ?? "Data not available"}\n"; result += $"Location: {Location?.ToString() ?? "Data not available"}\n"; result += $"Position Type: {PositionType?.ToString() ?? "Data not available"}\n"; result += $"Core Competency: {CoreCompetency?.ToString() ?? "Data not available"}\n"; result += "\n"; return(result); }
public Job(Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this("No Data", employerName, employerLocation, jobType, jobCoreCompetency) { }
public Job(string name, Employer employer, Location location, PositionType jobType, CoreCompetency coreCompetency) : base(name, employer, location, jobType, coreCompetency) { }