public Company(string name, CEO ceo) { this.Name = name; this.CEO = ceo; this.Employees = new List<IEmployee>(); this.Departments = new List<Department>(); }
public Company(string name, CEO ceo) { this.Name = name; this.ceo = ceo; this.Departments = new List<IDepartment>(); this.CompanyEmployees = new List<IPaidPerson>(); }
public Company(string name, CEO ceo) { this.Name = name; this.CEO = ceo; this.Employees = new List <IEmployee>(); this.Departments = new List <Department>(); }
private string ExecuteCreateCompanyCommand(ICommand command) { var ceo = new CEO(command.Parameters[1], command.Parameters[2], decimal.Parse(command.Parameters[3])); this.database.TotalSalaries[ceo] = 0m; var company = new Company(command.Parameters[0], ceo); if (this.database.Companies.Any(c => c.Name == company.Name)) { return string.Format($"Company {company.Name} already exists"); } this.database.Companies.Add(company); return null; }