Exemplo n.º 1
0
 public void Add()
 {
     homePage        = new HomePage(driver);
     allProductsPage = homePage.ClickOnLink("All Products");
     productPage     = allProductsPage.CreateProduct();
     productPage.InputProductName("Spagetti");
     productPage.InputCategoryId("Dairy Products");
     productPage.InputSupplierId("Heli Süßwaren GmbH & Co. KG");
     productPage.InputUnitPrice("17");
     productPage.InputQuantityPerUnit("3");
     productPage.InputUnitsInStock("500");
     productPage.InputUnitsOnOrder("6");
     productPage.InputReorderLevel("9");
     productPage.Submit();
     Assert.AreEqual("All Products", productPage.TitleText());
     Assert.IsTrue(allProductsPage.IsProductPresent("Spagetti"));
 }
Exemplo n.º 2
0
 public void ThenAProductNamedShouldAppearOnTheProductPage(string name)
 {
     Assert.IsTrue(allProductsPage.IsProductPresent(name));
 }
Exemplo n.º 3
0
 public void Delete()
 {
     allProductsPage.RemoveProduct("Spagetti");
     Assert.IsFalse(allProductsPage.IsProductPresent("Spagetti"));
 }