Ejemplo n.º 1
0
        public void _calcOT(string Name, EmployeeType empType, double HoursWorked, double ExpectedOT)
        {
            Employee emp = new Employee(Name, empType, HoursWorked);
            TheRuleList trl = new TheRuleList(emp);
            trl.Invoke();

            Console.WriteLine("Name: {0}\tEmployeeType: {1}\tHoursWorked: {2}\tOverTime: {3}\tExpected OverTime: {4}"
            , Name, empType.ToString(), HoursWorked.ToString(), emp.OverTimeHours.ToString(), ExpectedOT.ToString());
        }
Ejemplo n.º 2
0
        public void _calcOT(string Name, EmployeeType empType, double HoursWorked, double ExpectedOT)
        {
            Employee    emp = new Employee(Name, empType, HoursWorked);
            TheRuleList trl = new TheRuleList(emp);

            trl.Invoke();

            Console.WriteLine("Name: {0}\tEmployeeType: {1}\tHoursWorked: {2}\tOverTime: {3}\tExpected OverTime: {4}"
                              , Name, empType.ToString(), HoursWorked.ToString(), emp.OverTimeHours.ToString(), ExpectedOT.ToString());
        }