[Test] // #16 public void p() { //@ Add a deparment and check if he existing Employee_Data ed = new Employee_Data(); ed.Remove("14"); Assert.IsTrue(!ed.Contains("14")); }
[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")); }
//checks if employee exsists in the database public bool exist(string employee) { return(itsDAL.Contains(employee)); }