public void GetEmployeeByNTIDSuccess() { ManageDirectoryServices manageDirectoryServices = new ManageDirectoryServices(); var context = manageDirectoryServices.GetEmployeeByNTID(MSID); Assert.AreEqual(MSID, context.User.SamAccountName); }
public void GetReportesSuccess() { ManageDirectoryServices manageDirectoryServices = new ManageDirectoryServices(); var context = manageDirectoryServices.GetEmployeeByNTID(MSID); var repcontext = context.GetDirectReports(); var flag = repcontext.DirectReports.Count > 0 ? true : false; Assert.AreEqual(true, flag); }