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()); }
public void WhenIEnterUnitsOnOrder(string on_order) { ProductEditingPage productEditingPage = new ProductEditingPage(driver); productEditingPage.SetUnitsOnOrder(new Products(null, null, null, null, null, null, on_order, null)); }