示例#1
0
        public override void Execute(string[] commandParams, IRepository repository)
        {
            var employeeName = commandParams[1];
            var employeeType = commandParams[0];

            var employee = EmployeeFactory.CreateEmplyee(employeeType, employeeName);

            repository.AddEmployee(employee);
        }