Ejemplo n.º 1
0
 public void ThenICanPlaceTheOrder()
 {
     shoppingCartSummaryPage.AssertPrdouctCount();
     shoppingCartSummaryPage.ProceedToCheckOut();
     shoppingCartAddressPage.ProceedToCheckOut();
     shoppngCartShippingPage.AcceptTerms();
     shoppngCartShippingPage.ProceedToCheckOut();
     shoppingCartPaymentPage.PayByBank();
     confirmation.ConfirmOrderToBuy();
     confirmation.AssertFinalConfirmation();
 }
        public void Buy(int amountToBuy)
        {
            DressesPage dressesPage = new DressesPage();

            dressesPage.AddToCart();

            ShoppingCartSummaryPage shoppingCartSummaryPage = dressesPage.ProceedToCheckOut();

            shoppingCartSummaryPage.AddQty(amountToBuy);
            TotalOrder = shoppingCartSummaryPage.GetTotal();

            ShoppingCartAddressPage shoppingCartAddressPage = shoppingCartSummaryPage.ProceedToCheckOut();

            ShoppingCartShippingPage shoppingCartShippingPage = shoppingCartAddressPage.ProceedToCheckOut();

            shoppingCartShippingPage.AcceptTerms();

            ShoppingCartPaymentPage shoppingCartPaymentPage = shoppingCartShippingPage.ProceedToCheckOut();
            Confirm confirm = shoppingCartPaymentPage.PayByBank();

            Order orderToBuy = confirm.ConfirmOrderToBuy();

            TotalPaid = orderToBuy.GetAmount();
        }