public OnlineShoppingCartFacade(
     BillingInformationPage billingInformationPage,
     ShoppingCartPage shoppingCartPage)
 {
     this.billingInformationPage = billingInformationPage;
     this.shoppingCartPage = shoppingCartPage;
 }
示例#2
0
        public void CreatePurchaseBulgaria_AndValidateNoVATTax()
        {
            IWebDriver driver = new FirefoxDriver();

            ShoppingCartPage shoppingCartPage = new ShoppingCartPage(driver);
            BillingInformationPage billingInformationPage = new BillingInformationPage(driver);
            OnlineShoppingCartFacade onlineShoppingCart = new OnlineShoppingCartFacade(shoppingCartPage, billingInformationPage);
            BillingInformation billingInfo = new BillingInformation("Anton", "Angelov", "Kaspichan");
            ShippingInformation shippingInfo = new ShippingInformation("Anton", "Angelov", "Kalofer");

            onlineShoppingCart.PerformPurchase(billingInfo, shippingInfo);
        }
 public static void AssertCheckoutButtonIsEnabled(this ShoppingCartPage page)
 {
     Assert.IsTrue(page.Checkout.Enabled, "The checkout button was not enabled.");
 }