Exemplo n.º 1
0
        public bool isAllTicketsWithoutLuggage()
        {
            FindTicketsPage  findTicketsPage             = new FindTicketsPage(driver);
            HashSet <string> listAtributesTicketsLuggage = findTicketsPage.GetListAtributesTicketsLuggage();

            return(listAtributesTicketsLuggage.Contains("without-baggage") && (listAtributesTicketsLuggage.Count == 1));
        }
Exemplo n.º 2
0
        public bool isAllTicketsWithoutLuggage()
        {
            FindTicketsPage  findTicketsPage             = new FindTicketsPage(driver);
            HashSet <string> listAtributesTicketsLuggage = findTicketsPage.GetListAtributesTicketsLuggage();
            bool             isWithoutLuggage            = true;

            foreach (string item in listAtributesTicketsLuggage)
            {
                if (!item.Contains("without-baggage"))
                {
                    isWithoutLuggage = false;
                    break;
                }
            }
            return(listAtributesTicketsLuggage.Count != 0 ? isWithoutLuggage && (listAtributesTicketsLuggage.Count == 1) : true);
        }