private void dgvBookingList_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (MessageBox.Show("Make a check in?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No) { return; } string selectedBookingId = this.dgvBookingList.Rows[e.RowIndex].Cells[0].Value.ToString(); CheckInBUS.AddCheckInBaseOnBooking(selectedBookingId); this.bookingDTOBindingSource.DataSource = BookingBUS.GetBookings(); this.checkInDTOBindingSource.DataSource = CheckInBUS.GetCheckIns(); }
public void AddCheckInBaseOnBookingTest_TC2() { CheckInBUS.AddCheckInBaseOnBooking("B0001"); }
public void AddCheckInBaseOnBookingTest_TC3() { CheckInBUS.AddCheckInBaseOnBooking("B696969"); }
public void AddCheckInBaseOnBookingTest_TC1() { CheckInBUS.AddCheckInBaseOnBooking("B0006"); Assert.IsTrue(true); }