Example #1
0
 public void GetAllByPage_OutOfRangeTest()
 {
     try
     {
         int count = busPerson.GetPersonCount();
         busPerson.GetAllByPage(count, 10);
         Assert.Fail("رینح خارج از محدوده");
     }
     catch (OutOfExpectedRangeException ex)
     {
         Assert.Pass(ex.Message);
     }
 }
Example #2
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);
        }
Example #3
0
        protected void Button39_Click(object sender, EventArgs e)
        {
            BPerson bus = new BPerson();

            bus.GetAllByPage(100, 0);
        }