Ejemplo n.º 1
0
 public Job() : base()
 {
     Name              = "";
     EmployerName      = new Employer("");
     EmployerLocation  = new Location("");
     JobType           = new PositionType("");
     JobCoreCompetency = new CoreCompetency("");
 }
Ejemplo n.º 2
0
 public Job(string name, Employer empName, Location empLoc, PositionType jobType, CoreCompetency jobCoreComp) : this()
 {
     this.Name              = name;
     this.EmployerName      = empName;
     this.EmployerLocation  = empLoc;
     this.JobType           = jobType;
     this.JobCoreCompetency = jobCoreComp;
 }
Ejemplo n.º 3
0
 public Job(string name, Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this()
 {
     Name              = name;
     EmployerName      = employerName;
     EmployerLocation  = employerLocation;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
 }
Ejemplo n.º 4
0
 public Job(string aName, Employer aEmployerName, Location aEmployerLocation, PositionType aJobType, CoreCompetency aJobCoreCompetency) : this()
 {
     Name              = aName;
     EmployerName      = aEmployerName;
     EmployerLocation  = aEmployerLocation;
     JobType           = aJobType;
     JobCoreCompetency = aJobCoreCompetency;
 }
Ejemplo n.º 5
0
 public Job(string name, Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this()  // :this() will initialize an id for that constructor too
 {
     Name              = name;
     EmployerName      = employerName;
     EmployerLocation  = employerLocation;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
 }
Ejemplo n.º 6
0
 public Job(string name, object employerName, object employerLocation, object positionType, object coreCompetency) : this()
 {
     Name              = name;
     EmployerName      = new Employer(employerName.ToString());
     EmployerLocation  = new Location(employerLocation.ToString());
     JobType           = new PositionType(positionType.ToString());
     JobCoreCompetency = new CoreCompetency(coreCompetency.ToString());
 }
Ejemplo n.º 7
0
 public Job(string value, Employer employer, Location location, PositionType position, CoreCompetency coreCompetency) : this()
 {
     Name              = value;
     EmployerName      = employer;
     EmployerLocation  = location;
     JobType           = position;
     JobCoreCompetency = coreCompetency;
 }
 public Job(string name, string employerName, string employerLocation, string jobType, string jobCoreCompetency) : this()
 {
     Name              = name;
     EmployerName      = employerName;
     EmployerLocation  = employerLocation;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
 }
Ejemplo n.º 9
0
 public Job(string name, Employer empname, Location emploc, PositionType pt, CoreCompetency cc) : this()
 {
     Name              = name;
     EmployerName      = empname;
     EmployerLocation  = emploc;
     JobType           = pt;
     JobCoreCompetency = cc;
 }
Ejemplo n.º 10
0
        /*
         * 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 name, object employerName, object employerLocation, object jobType, object jobCoreCompetency) : this()
        {
            Name              = name;
            EmployerName      = (Employer)employerName;
            EmployerLocation  = (Location)employerLocation;
            JobType           = (PositionType)jobType;
            JobCoreCompetency = (CoreCompetency)jobCoreCompetency;
        }
Ejemplo n.º 11
0
 public Job(string name, Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this()//  Constructor  My Code  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. ???
 {
     Name              = name;
     EmployerName      = employerName;
     EmployerLocation  = employerLocation;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
 }
Ejemplo n.º 12
0
 public Job(string name, Employer e, Location l, PositionType p, CoreCompetency c) : this()
 {
     Name              = name;
     EmployerName      = e;
     EmployerLocation  = l;
     JobType           = p;
     JobCoreCompetency = c;
 }
Ejemplo n.º 13
0
 public Job(string name, string employerName, string employerLocation, string jobType, string jobCoreCompetency) : this()
 {
     Name              = name;
     EmployerName      = new Employer(employerName);
     EmployerLocation  = new Location(employerLocation);
     JobType           = new PositionType(jobType);
     JobCoreCompetency = new CoreCompetency(jobCoreCompetency);
 }
Ejemplo n.º 14
0
 public Job(string name, Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this()
 {
     this.Name              = name;
     this.EmployerName      = employerName;
     this.EmployerLocation  = employerLocation;
     this.JobType           = jobType;
     this.JobCoreCompetency = jobCoreCompetency;
     //this.Id = nextId++;
 }
Ejemplo n.º 15
0
        public Job(string name, Employer employer, Location location, PositionType positionType, CoreCompetency coreCompetency)
        {
            Name              = name;
            EmployerName      = employer;
            EmployerLocation  = location;
            JobType           = positionType;
            JobCoreCompetency = coreCompetency;

            Id = nextId;
            nextId++;
        }
Ejemplo n.º 16
0
        public void JobToString_EmptyFieldsAddsMessageAfterLabel_ReturnTrue()
        {
            Employer       testEmployer       = new Employer("");
            Location       testLocation       = new Location("");
            PositionType   testPositionType   = new PositionType("");
            CoreCompetency testCoreCompetency = new CoreCompetency("");

            Job testJob8 = new Job(null, testEmployer, testLocation, testPositionType, testCoreCompetency);

            Assert.AreEqual("\nID: 20\nName: Data not available\n" +
                            "Employer: Data not available\nLocation: Data not available\nPosition Type: Data not available\nCore Competency: Data not available\n", testJob8.ToString());
        }
Ejemplo n.º 17
0
        public Job(string v, Employer emp, Location loc, PositionType posT, CoreCompetency CorC) : this()
        {
            Name = v;

            if (String.IsNullOrEmpty(Name))
            {
                Name = "Data not available";
            }

            EmployerName      = emp;
            EmployerLocation  = loc;
            JobType           = posT;
            JobCoreCompetency = CorC;
        }
Ejemplo n.º 18
0
 public Job(string name, Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency)
 {
     Id = nextId;
     nextId++;
     Name              = name;
     EmployerName      = employerName;
     EmployerLocation  = employerLocation;
     JobType           = jobType;
     JobCoreCompetency = jobCoreCompetency;
     jobData.Add("ID", Id.ToString());
     jobData.Add("Name", Name);
     jobData.Add("Employer", EmployerName.Value);
     jobData.Add("Location", EmployerLocation.Value);
     jobData.Add("Position Type", JobType.Value);
     jobData.Add("Core Competency", JobCoreCompetency.Value);
 }
Ejemplo n.º 19
0
        // TODO: Generate Equals() and GetHashCode() methods.

        public override string ToString()
        {
            string errorMessage = "Data Not Available";

            if (Name == "" || Name == null &&
                EmployerName.ToString() == "" &&
                EmployerLocation.ToString() == "" &&
                JobType.ToString() == "" &&
                JobCoreCompetency.ToString() == "")
            {
                return("OOPS! This job does not seem to exist.");
            }

            if (Name == null)
            {
                Name = errorMessage;
            }
            if (EmployerName.ToString() == "")
            {
                EmployerName = new Employer(errorMessage);
            }
            if (EmployerLocation.ToString() == "")
            {
                EmployerLocation = new Location(errorMessage);
            }
            if (JobType.ToString() == "")
            {
                JobType = new PositionType(errorMessage);
            }
            if (JobCoreCompetency.ToString() == "")
            {
                JobCoreCompetency = new CoreCompetency(errorMessage);
            }


            return("\n ID: " + Id +
                   "\n Name: " + Name +
                   "\n Employer: " + EmployerName +
                   "\n Location: " + EmployerLocation +
                   "\n Position Type: " + JobType +
                   "\n Core Competency: " + JobCoreCompetency + "\n");
        }
Ejemplo n.º 20
0
        public Job(string name, Employer employerName, Location employerLocation, PositionType type, CoreCompetency coreCompetency) : this()
        {
            string charString = "abcdefghijklmnopqrstuvwxyz";

            if (charString.Contains(name.ToLower()))
            {
                this.Name              = "Data unavailable";
                this.EmployerName      = employerName;
                this.EmployerLocation  = employerLocation;
                this.JobType           = type;
                this.JobCoreCompetency = coreCompetency;
            }
            else
            {
                this.Name              = name;
                this.EmployerName      = employerName;
                this.EmployerLocation  = employerLocation;
                this.JobType           = type;
                this.JobCoreCompetency = coreCompetency;
            }
        }
Ejemplo n.º 21
0
 public Job(Employer employerName, Location employerLocation, PositionType jobType, CoreCompetency jobCoreCompetency) : this("No Data", employerName, employerLocation, jobType, jobCoreCompetency)
 {
 }
Ejemplo n.º 22
0
 public ShellCo(string name, Employer employer, Location location, PositionType jobType, CoreCompetency coreCompetency) : this()
 {
     Name              = name;
     EmployerName      = employer;
     EmployerLocation  = location;
     JobType           = jobType;
     JobCoreCompetency = coreCompetency;
 }
Ejemplo n.º 23
0
 public Job(string name, Employer employer, Location location, PositionType posType, CoreCompetency coreCompetency) : this()
 {
     this.Name              = name;
     this.EmployerName      = employer;
     this.EmployerLocation  = location;
     this.JobType           = posType;
     this.JobCoreCompetency = coreCompetency;
 }
Ejemplo n.º 24
0
 public Job(string name, Employer employer, Location location, PositionType jobType, CoreCompetency coreCompetency) :
     base(name, employer, location, jobType, coreCompetency)
 {
 }