[Test] // #15 public void o() { //@ Add a worker and check if he existing Employee_Data ed = new Employee_Data(); Backend.Employee c = new Backend.Employee("14", "adam", "bon", "Man", "3434", 20000.0, "0", "Worker"); ed.Add(c); Assert.IsTrue(ed.Contains("14")); }
//adds a new employee public bool Add(string id, string first, string last, string gender, string departmentID, string salary, string supervisorID, string type) { if (!exist(id)) { Backend.Employee e = new Backend.Employee(id, first, last, gender, departmentID, double.Parse(salary), supervisorID, type); itsDAL.Add(e); return(true); } return(false); }