コード例 #1
0
        /// <summary>
        /// تعداد پرسنل را برمیگرداند
        /// </summary>
        /// <returns></returns>
        public int GetAllPaeronsCount()
        {
            ISearchPerson searchTool = new BPerson();
            int           count      = searchTool.GetPersonCount();

            return(count);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: BUser.cs プロジェクト: ImanRezaeipour/GTS
 /// <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;
     }
 }