Exemple #1
0
 public void Booking_No_Inv_And_No_Fin_After_7Days()
 {
     using (var cop = new TransactionScope())
     {
         InitDataRentalCar           InitData = new InitDataRentalCar();
         InitDataRentalCar.InnitData hgjfgj   = InitData.CreateData(DateTime.Now.AddDays(-10), 0, 0);
         StopBLL output = new StopBLL();
         output.Process();
         R_B_Access oupts = BaseBLL.Instance.GetByID <R_B_Access>(hgjfgj.R_B_Acces.ID);
         if (oupts != null)
         {
             Assert.IsTrue("StopProcess" == oupts.BookingStatus);
         }
     }
 }
Exemple #2
0
 public void Booking_Has_Inv_Before_7Days()
 {
     using (var cop = new TransactionScope())
     {
         InitDataRentalCar           InitData = new InitDataRentalCar();
         InitDataRentalCar.InnitData hgjfgj   = InitData.CreateData(DateTime.Now, 0, 1);
         StopBLL output = new StopBLL();
         output.Process();
         R_B_Access oupts = BaseBLL.Instance.GetByID <R_B_Access>(hgjfgj.R_B_Acces.ID);
         if (oupts != null)
         {
             Assert.IsTrue("Processing" == oupts.BookingStatus);
         }
     }
 }
Exemple #3
0
        public void Booking_Has_Inv_After_7Days()
        {
            InitDataRentalCar InitData = new InitDataRentalCar();

            InitDataRentalCar.InnitData hgjfgj = InitData.CreateData(DateTime.Now.AddDays(-10), 1, 0);
            StopBLL output = new StopBLL();

            output.Process();
            R_B_Access oupts = BaseBLL.Instance.GetByID <R_B_Access>(hgjfgj.R_B_Acces.ID);

            if (oupts != null)
            {
                Assert.IsTrue("Processing" == oupts.BookingStatus);
            }
        }