Ejemplo n.º 1
0
        public void Operator_GetFilterRequestCount1()
        {
            busRegisteredRequest = new BKartabl(ADOPerson1.ID, ADOUser1.ID, ADOUser1.UserName);
            UserRequestFilterProxy proxy = new UserRequestFilterProxy();

            proxy.ToDate = Utility.ToPersianDate(new DateTime(2010, 5, 1));
            int count = busRegisteredRequest.GetFilterUserRequestsCount(proxy);

            Assert.AreEqual(1, count);
        }
Ejemplo n.º 2
0
 public void GetRequestCount_Filter_Test1()
 {
     try
     {
         UserRequestFilterProxy proxy = new UserRequestFilterProxy();
         proxy.RequestType = RequestType.Hourly;
         int count = busRegisteredRequest.GetFilterUserRequestsCount(proxy);
         Assert.AreEqual(3, count);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }
Ejemplo n.º 3
0
 public void GetRequestCount_Filter_Test3()
 {
     try
     {
         busRegisteredRequest = new BKartabl(ADOPerson3.ID, ADOUser3.ID, ADOUser3.UserName);
         UserRequestFilterProxy proxy = new UserRequestFilterProxy();
         proxy.ToDate = Utility.ToPersianDate(new DateTime(2010, 5, 1));
         int count = busRegisteredRequest.GetFilterUserRequestsCount(proxy);
         Assert.AreEqual(1, count);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }
Ejemplo n.º 4
0
 public void GetRequestCount_Filter_Test2()
 {
     try
     {
         busRegisteredRequest = new BKartabl(ADOPerson5.ID, ADOUser5.ID, ADOUser5.UserName);
         UserRequestFilterProxy proxy = new UserRequestFilterProxy();
         proxy.RequestType = RequestType.Daily;
         int count = busRegisteredRequest.GetFilterUserRequestsCount(proxy);
         Assert.AreEqual(1, count);
     }
     catch (Exception ex)
     {
         Assert.Fail(ex.Message);
     }
 }