Пример #1
0
        public static AllProductsPage CreateProduct(Products products, IWebDriver driver)
        {
            MainPage           mainPage           = new MainPage(driver);
            AllProductsPage    allProductsPage    = mainPage.OpenProducts();
            ProductEditingPage productEditingPage = allProductsPage.OpenProductCreator();

            productEditingPage.SetProductName(products);
            productEditingPage.SetCategory(products);
            productEditingPage.SetSupplier(products);
            productEditingPage.SetUnitPrice(products);
            productEditingPage.SetQuantityPerUnit(products);
            productEditingPage.SetUnitsInStock(products);
            productEditingPage.SetUnitsOnOrder(products);
            productEditingPage.SetReorderLevel(products);
            return(productEditingPage.CreateConfirmation());
        }
Пример #2
0
        public void WhenIEnterReorderLevel(string reorder_level)
        {
            ProductEditingPage productEditingPage = new ProductEditingPage(driver);

            productEditingPage.SetReorderLevel(new Products(null, null, null, null, null, null, null, reorder_level));
        }