コード例 #1
0
ファイル: AddCartStep.cs プロジェクト: Andy2010a/WoolieX_Tech
 public void ThenICanPlaceTheOrder()
 {
     shoppingCartSummaryPage.AssertPrdouctCount();
     shoppingCartSummaryPage.ProceedToCheckOut();
     shoppingCartAddressPage.ProceedToCheckOut();
     shoppngCartShippingPage.AcceptTerms();
     shoppngCartShippingPage.ProceedToCheckOut();
     shoppingCartPaymentPage.PayByBank();
     confirmation.ConfirmOrderToBuy();
     confirmation.AssertFinalConfirmation();
 }
コード例 #2
0
        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();
        }