/// <summary> /// تعداد پرسنل را برمیگرداند /// </summary> /// <returns></returns> public int GetAllPaeronsCount() { ISearchPerson searchTool = new BPerson(); int count = searchTool.GetPersonCount(); return(count); }
public void QuickSearchOnEmptyTextTest() { int count = busPerson.GetPersonCount(); IList <Person> list = searchTool.QuickSearchByPage(0, count, ""); Assert.IsTrue(list.Where(x => x.ID == ADOPerson1.ID).Count() == 1); }
public void GetAllByPage_FaTest() { busPerson = new BPerson(SysLanguageResource.Parsi, LocalLanguageResource.Parsi); int count = busPerson.GetPersonCount(); IList <Person> list = busPerson.GetAllByPage(count, 0); Assert.IsTrue(list.Where(x => x.PersonCode == ADOPerson1.PersonCode).Count() == 1); }
/// <summary> /// تعداد کل کاربران /// </summary> /// <returns></returns> public int GetAllUsersCount() { try { ISearchPerson bperson = new BPerson(); int count = bperson.GetPersonCount(); return(count); } catch (Exception ex) { LogException(ex, "BUser", "GetAllUsersCount"); throw ex; } }