public Engineer(string id, string firstName, string lastName, decimal salary, Enums.Corps corps, IEnumerable <Repair> repairs)
        : base(id, firstName, lastName, salary, corps)
    {
        this.repairs = new List <Repair>();

        this.repairs.AddRange(repairs);
    }
Exemplo n.º 2
0
    public Commando(string id, string firstName, string lastName, decimal salary, Enums.Corps corps, IEnumerable <Mission> missions)
        : base(id, firstName, lastName, salary, corps)
    {
        this.missions = new Dictionary <string, Mission>();

        foreach (Mission mission in missions)
        {
            this.missions[mission.CodeName] = mission;
        }
    }
 public SpecializedSoldier(Private privateObj, Enums.Corps corps)
     : this(privateObj.Id, privateObj.FirstName, privateObj.LastName, privateObj.Salary, corps)
 {
 }
 public SpecializedSoldier(string id, string firstName, string lastName, decimal salary, Enums.Corps corps)
     : base(id, firstName, lastName, salary)
 {
     this.Corps = corps;
 }