Ejemplo n.º 1
0
        /// <summary>
        /// Checks the number of tickets (all types) in the cart
        /// </summary>
        /// <param name="expected"></param>
        public void CheckNumberOfTicketsInCombinedCart_Front(int expected)
        {
            //Go to the cart 
            _driverCover.NavigateToUrl(_driverCover.BaseUrl + "en/payments/new/");

            //Check number of elemetns in the cart
            CartObj cart = new CartCombinedWebObj(_driver);
            Assert.AreEqual(expected, cart.NumberOfTickets, "There are " + cart.NumberOfTickets + " group tickets in the cart, but " + expected + " were expected ");
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Removes all ticket from the cart. Needs previous login
 /// </summary>
 public void DeleteAllTicketFromCart_Front()
 {
     _driverCover.NavigateToUrl(_driverCover.BaseUrl + "payments/new");
     CartObj cart = new CartCombinedWebObj(_driver);
     cart.DeleteAllTickets();
 }