public ContactPage AskQuestion(string email, string bookingNumber, string question)
 {
     Email.SendKeys(email);
     BookingNumber.SendKeys(bookingNumber);
     Question.SendKeys(question);
     ButtonSend.Click();
     log.Info("Question askred");
     return(new ContactPage(driver));
 }
Ejemplo n.º 2
0
            protected override void Handle(Command message)
            {
                // ** Data Mapper Pattern

                var booking = new Domain.Entities.Booking();

                booking.FlightId      = message.FlightId;
                booking.SeatId        = message.SeatId;
                booking.TravelerId    = message.TravelerId;
                booking.BookingNumber = BookingNumber.Next();
                booking.BookingDate   = DateTime.UtcNow;

                _serviceManager.Booking.CreateBooking(booking);
                _serviceManager.Save();

                // ** Event Sourcing Pattern

                _event.InsertBooking(booking);

                // Update statistics

                _rollup.TotalBookings(booking);
            }
Ejemplo n.º 3
0
        public void TrimData()
        {
            if (BookingNumber == null)
            {
                BookingNumber = "";
            }

            if (SaraiMasterId < 0)
            {
                SaraiMasterId = 0;
            }

            if (CustomerMasterId < 0)
            {
                CustomerMasterId = 0;
            }

            if (NumberOfRooms < 0)
            {
                NumberOfRooms = 0;
            }

            if (AdultCount < 0)
            {
                AdultCount = 0;
            }

            if (ChildrenCount < 0)
            {
                ChildrenCount = 0;
            }

            if (ArrivalTime == null)
            {
                ArrivalTime = "";
            }

            if (ProofMasterId < 0)
            {
                ProofMasterId = 0;
            }

            if (ProofDocumentMasterId < 0)
            {
                ProofDocumentMasterId = 0;
            }

            if (ProofDocumentNumber == null)
            {
                ProofDocumentNumber = "";
            }

            if (Amount < 0)
            {
                Amount = 0;
            }

            if (Remarks == null)
            {
                Remarks = "";
            }

            if (IPAddress == null)
            {
                IPAddress = "";
            }

            if (OnlineBookingId < 0)
            {
                OnlineBookingId = 0;
            }

            if (CancelRemarks == null)
            {
                CancelRemarks = "";
            }

            BookingNumber       = BookingNumber.Trim();
            ArrivalTime         = ArrivalTime.Trim();
            ProofDocumentNumber = ProofDocumentNumber.Trim();
            Remarks             = Remarks.Trim();
            IPAddress           = IPAddress.Trim();
            CancelRemarks       = CancelRemarks.Trim();
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (entityId_ != null)
            {
                hash ^= EntityId.GetHashCode();
            }
            if (State != 0)
            {
                hash ^= State.GetHashCode();
            }
            if (BookingNumber != 0L)
            {
                hash ^= BookingNumber.GetHashCode();
            }
            if (BookingPrefix.Length != 0)
            {
                hash ^= BookingPrefix.GetHashCode();
            }
            if (CurrentOccupiedRoomNumber.Length != 0)
            {
                hash ^= CurrentOccupiedRoomNumber.GetHashCode();
            }
            if (TerminalOccupiedRoomNumber.Length != 0)
            {
                hash ^= TerminalOccupiedRoomNumber.GetHashCode();
            }
            if (FirstNightAssignedRoomNumber.Length != 0)
            {
                hash ^= FirstNightAssignedRoomNumber.GetHashCode();
            }
            if (VehiclePlateInformation.Length != 0)
            {
                hash ^= VehiclePlateInformation.GetHashCode();
            }
            if (arrivalDate_ != null)
            {
                hash ^= ArrivalDate.GetHashCode();
            }
            if (departureDate_ != null)
            {
                hash ^= DepartureDate.GetHashCode();
            }
            if (RoomTypeName.Length != 0)
            {
                hash ^= RoomTypeName.GetHashCode();
            }
            if (OTANumber.Length != 0)
            {
                hash ^= OTANumber.GetHashCode();
            }
            if (GuestText.Length != 0)
            {
                hash ^= GuestText.GetHashCode();
            }
            if (MasterFolioText.Length != 0)
            {
                hash ^= MasterFolioText.GetHashCode();
            }
            if (IsGroupAssociated != false)
            {
                hash ^= IsGroupAssociated.GetHashCode();
            }
            if (currentDueFromGuest_ != null)
            {
                hash ^= CurrentDueFromGuest.GetHashCode();
            }
            if (GuaranteeStatus != 0)
            {
                hash ^= GuaranteeStatus.GetHashCode();
            }
            if (ReservationSource.Length != 0)
            {
                hash ^= ReservationSource.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 5
0
 public string FindBookingWithWrongBookingNumber(Booking booking)
 {
     BookingNumber.SendKeys(booking.WrongBooking);
     SearchButton.Click();
     return(ErrorMessage.Text);
 }