public void IAddTheItemPriceToTheCart(string price) { if (products == null) { products = new ProductsListing(); } products.ProductByPrice(price).ClickButton("Add to cart"); page.ClickButton("Proceed to checkout"); }
public void ThenTheFirstProductIsPriced(string expectedPrice) { if (products == null) { products = new ProductsListing(); } string actualPrice = products.ProductByIndex(0).Price; Assert.AreEqual(expectedPrice, actualPrice, "FAIL: Expecting the first item to " + "have a price of {0}, actual {1}", expectedPrice, actualPrice); }