public void VerifyAddInstanceWithAllValidData()
        {
            InstanceFacade facade = new InstanceFacade();

            facade.AddInstance(this.GetInstance());

            Assert.IsTrue(true);
        }
        public void VerifyAddFormDescriptionErrorMessages()
        {
            InstanceFacade facade = new InstanceFacade();
            var path = PathGenerator.AbsoluteRelativeCombine(Paths.DataBindLocation + "CategoryFormOrder.xlsx");

            foreach (var sheet in Workbook.Worksheets(path))
            {
                foreach (var row in sheet.Rows)
                {
                    Instance category = new Instance(row.Cells);

                    facade.AddInstance(category);

                    facade.AssertOrderErrorMessage(category);
                }
            }
        }
        public void VerifyAddFormNameErrorMessages()
        {
            InstanceFacade facade = new InstanceFacade();
            var path = PathGenerator.AbsoluteRelativeCombine(Paths.DataBindLocation + "InstaceFormName.xlsx");

            foreach (var sheet in Workbook.Worksheets(path))
            {
                foreach (var row in sheet.Rows)
                {
                    Instance instance = new Instance(row.Cells);

                    facade.AddInstance(instance);

                    facade.AssertNameErrorMessage(instance);
                }
            }
        }
        public void VerifyGridSort()
        {
            InstanceFacade facade = new InstanceFacade();

            facade.SortGrid();
        }
        public void VerifyEditFormOrderErrorMessagesDataBind()
        {
            InstanceFacade facade = new InstanceFacade();
            Instance instance = this.GetInstance();
            var path = PathGenerator.AbsoluteRelativeCombine(Paths.DataBindLocation + "CategoryFormName.xlsx");

            facade.AddInstance(instance);
            foreach (var sheet in Workbook.Worksheets(path))
            {
                foreach (var row in sheet.Rows)
                {
                    Instance editInstance = new Instance(row.Cells);

                    facade.EditCategory(instance, editInstance);

                    facade.AssertOrderErrorMessage(editInstance);
                }
            }
        }
        public void VerifyEditFormCreateCategory()
        {
            InstanceFacade facade = new InstanceFacade();
            Instance instance = this.GetInstance();
            Instance editInstance = this.GetEditInstance();

            facade.AddInstance(instance);
            facade.EditCategory(instance, editInstance);

            facade.AssertCategoryExist(editInstance);
        }
        public void VerifyManualNavigateToInstancesPage()
        {
            InstanceFacade facade = new InstanceFacade();

            facade.ManualNavigate();

            facade.AssertInstancePageIsOpen();
        }
        public void VerifyManualNavigateFromInstancesPageToAdmin()
        {
            InstanceFacade facade = new InstanceFacade();

            facade.GoBackToAdminPage();

            this.adminFacade.VerifyPageIsOpen();
        }