public void addSecretaryTest() { CHeadOfDepartment hod = new CHeadOfDepartment("test", "test", "test", "test", "test"); CSecretary s = new CSecretary("test", "test", "test", "test", "test"); hod.addSecretary(s.Id, s.Name); DataTable dt = Program.get_dt("SELECT id,f_name from login WHERE Id='test'"); Assert.IsTrue(dt.Rows[0][0].ToString() == s.Id && dt.Rows[0][1].ToString() == s.Name); Program.update_sql("DELETE login WHERE id='TEST'"); }
public void dismissSecretaryTest() { CHeadOfDepartment hod = new CHeadOfDepartment("test", "test", "test", "test", "test"); CSecretary s = new CSecretary("test", "test", "test", "test", "test"); hod.addSecretary(s.Id, s.Name); hod.dismissSecretary(s.Id); DataTable dt = Program.get_dt("SELECT id from login WHERE Id='test'"); Assert.IsTrue(dt.Rows.Count == 0); }
public Secretary_Menu(CSecretary s) { InitializeComponent(); sec = s; }
public Secretary_BuildSchdule(CSecretary sec) : this() { Sec = sec; }