Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        public void VerifyEditFormNameErrorMessagesDataBind()
        {
            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.AssertNameErrorMessage(editInstance);
                }
            }
        }