Example #1
0
 public void TestEmployee()
 {
     int empId = 1;
     Employee e = new Employee(empId, "Bob", "Home");
     Assert.AreEqual("Bob", e.Name);
     Assert.AreEqual("Home", e.Adress);
     Assert.AreEqual(empId, e.EmpId);
 }
Example #2
0
 public void Execute()
 {
     Employee e = new Employee(empid, name, address);
     PaymentClassification pc = MakeClassification();
     PaymentSchedule ps = MakeSchedule();
     PaymentMethod pm = new HoldMethod();
     e.Classification = pc;
     e.Schedule = ps;
     e.Method = pm;
     PayrollDatabase.AddEmployee(empid, e);
 }
Example #3
0
 public void TestEmployeeToString()
 {
     Employee e = new Employee(1, "Bob", "Home");
       Assert.AreEqual("Emp#: 1  Bob  Home  Paid    by ",e.ToString());
 }
Example #4
0
 public static void AddEmployee(int id, Employee employee)
 {
     employees[id] = employee;
 }