public void Test2_AddProduct()
        {
            mainpage       = new MainPage(driver);
            productediting = new ProductEditing(driver);
            productediting = mainpage.CreateNew();
            mainpage       = productediting.CreateProduct();

            Assert.AreEqual(ProductName_, mainpage.AssertAddProduct());
        }
Esempio n. 2
0
        public void Test3_OpenAndCheck()
        {
            productediting = ProductService.GetProduct(Fortune_cookie, driver);

            Assert.True(productediting.GetProductName(Fortune_cookie));
            Assert.True(productediting.GetCategory(Fortune_cookie));
            Assert.True(productediting.GetSupplier(Fortune_cookie));
            Assert.True(productediting.GetUnitPrice(Fortune_cookie));
            Assert.True(productediting.GetQuantityPerUnit(Fortune_cookie));
            Assert.True(productediting.GetUnitsInStock(Fortune_cookie));
            Assert.True(productediting.GetUnitsOnOrder(Fortune_cookie));
            Assert.True(productediting.GetReorderLevel(Fortune_cookie));
        }
        public void Test3_OpenAndCheck()
        {
            mainpage       = new MainPage(driver);
            productediting = mainpage.GetFortuneCookie();

            Assert.True(productediting.GetProductName());
            Assert.True(productediting.GetCategory());
            Assert.True(productediting.GetSupplier());
            Assert.True(productediting.GetUnitPrice());
            Assert.True(productediting.GetQuantityPerUnit());
            Assert.True(productediting.GetUnitsInStock());
            Assert.True(productediting.GetUnitsOnOrder());
            Assert.True(productediting.GetReorderLevel());
        }
Esempio n. 4
0
 public void Test2_AddProduct()
 {
     productediting = ProductService.Create_Product(Fortune_cookie, driver);
     Assert.AreEqual(Fortune_cookie.ProductName, mainpage.AssertAddProduct(Fortune_cookie));
 }