Пример #1
0
        private void ConfirmProcess()
        {
            foreach (Guest guest in this.guests)
            {
                if (guest.Title != null)
                {
                    PaymentPage.SelectGuestTitle(guest.RoomNumber, guest.GuestNumber, guest.Title.Value);
                }
                if (guest.FirstName != null)
                {
                    PaymentPage.TypeGuestFirstName(guest.RoomNumber, guest.GuestNumber, guest.FirstName);
                }
                if (guest.LastName != null)
                {
                    PaymentPage.TypeGuestLastName(guest.RoomNumber, guest.GuestNumber, guest.LastName);
                }
            }

            if (this.contactFirstName != null)
            {
                PaymentPage.TypeContactFirstName(this.contactFirstName);
            }
            if (this.contactLastName != null)
            {
                PaymentPage.TypeContactLastName(this.contactLastName);
            }
            if (this.contactEmail != null)
            {
                PaymentPage.TypeContactEmail(this.contactEmail);
            }
            if (this.contactPhoneNumber != null)
            {
                PaymentPage.TypeContactNumber(this.contactPhoneNumber);
            }

            if (this.paymentCardType != null)
            {
                PaymentPage.SelectPaymentType(this.paymentCardType.Value);
            }
            if (this.paymentCardNumber != null)
            {
                PaymentPage.TypeCardNumber(this.paymentCardNumber);
            }
            if (this.paymentSecurityCode != null)
            {
                PaymentPage.TypeSecurityCode(this.paymentSecurityCode);
            }
            if (this.paymentExpiryDate != null)
            {
                PaymentPage.TypeExpiryDate(this.paymentExpiryDate);
            }
            if (this.paymentCardHolderName != null)
            {
                PaymentPage.TypeCardHolderName(this.paymentCardHolderName);
            }
            if (this.paymentPostCode != null)
            {
                PaymentPage.TypePostCode(this.paymentPostCode);
                PaymentPage.ClickFindAddress();
                PaymentPage.SelectAddressNumber(1);
            }

            if (this.staffReference != null)
            {
                PaymentPage.TypeStaffReference(this.staffReference);
            }
            if (this.staffCustomerPhone != null)
            {
                PaymentPage.TypeStaffCustomerPhone(this.staffCustomerPhone);
            }
        }