コード例 #1
0
ファイル: StopBooking.cs プロジェクト: tieuloitu1/NewProject
 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);
         }
     }
 }
コード例 #2
0
ファイル: StopBooking.cs プロジェクト: tieuloitu1/NewProject
 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);
         }
     }
 }
コード例 #3
0
ファイル: StopBooking.cs プロジェクト: tieuloitu1/NewProject
        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);
            }
        }
コード例 #4
0
 public R_P_DownloadEmail()
 {
     BillingEmail               = new R_N_BillingEmail();
     BillingEmailDetail         = new R_N_BillingEmailDetail();
     BillingEmailAddition       = new R_N_BillingEmailAddition();
     BillingEmailAttachmentList = new List <R_N_BillingEmailAttachment>();
     AttachmentToImage          = new R_N_AttachmentToImage();
     B_Access            = new R_B_Access();
     BookingBillingEmail = new R_N_BookingBillingEmail();
     Image                 = new R_I_Image();
     InvoiceStepList       = new List <R_P_InvoiceStep>();
     NextInvoiceStepList   = new List <R_P_NextInvoiceStep>();
     B_Booking             = new R_B_Booking();
     ImageList             = new List <R_I_Image>();
     AttachmentToImageList = new List <R_N_AttachmentToImage>();
     N_BookingBillingEmail = new R_N_BookingBillingEmail();
     IsDoneTask            = true;
 }