public void VerifyEditFormOrderErrorMessagesDataBind() { CategoryFacade facade = new CategoryFacade(); Categories category = new Categories("Category", "20"); var path = PathGenerator.AbsoluteRelativeCombine(Paths.DataBindLocation + "CategoryFormOrder.xlsx"); facade.AddCategory(category); foreach (var sheet in Workbook.Worksheets(path)) { foreach (var row in sheet.Rows) { Categories editCategory = new Categories(row.Cells); facade.EditCategory(category, editCategory); facade.AssertOrderErrorMessage(editCategory); } } }
public void VerifyEditFormCreateCategory() { CategoryFacade facade = new CategoryFacade(); Categories category = new Categories("Category", "20"); Categories editCategory = new Categories("EditCat", "10"); facade.AddCategory(category); facade.EditCategory(category, editCategory); facade.AssertCategoryExist(editCategory); }