Пример #1
0
        public void Test2_TaxonomyReports()
        {
            GridHelper.SetTestSetting(3,
                                      "taxonomyReportGrid",
                                      "test",
                                      "testUpdated",
                                      "taxonomyForTaxonomyReport",
                                      1,
                                      false,
                                      new List <ColumnsToEdit>()
            {
                new ColumnsToEdit()
                {
                    ColumnNum = 1, ColumnName = "Id", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 2, ColumnName = "Description", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 4, ColumnName = "EntryUri", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 5, ColumnName = "FileName", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 6, ColumnName = "EntitySchema", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 7, ColumnName = "EntityIdentifire", Required = true
                },
            },
                                      new List <string>()
            {
                "EntityIdentifire"
            },
                                      new List <DropDownsToEdit>()
            {
                new DropDownsToEdit()
                {
                    ContainsEmptyValue = false, ColumnNum = 3, selectedValue = 1
                },
            });

            GridHelper.ChangeTaxonomyDropDown();
            GridHelper.TestGrid();
        }
Пример #2
0
        public void Test1_LocalTaxonomyReports()
        {
            GridHelper.SetTestSetting(4,
                                      "localReportGrid",
                                      "test",
                                      "testUpdated",
                                      "taxonomyForLocalReport",
                                      1,
                                      true,
                                      new List <ColumnsToEdit>()
            {
                new ColumnsToEdit()
                {
                    ColumnNum = 1, ColumnName = "Id", Required = true
                },
                new ColumnsToEdit()
                {
                    ColumnNum = 3, ColumnName = "Description"
                }
            },
                                      null,
                                      new List <DropDownsToEdit>()
            {
                new DropDownsToEdit()
                {
                    ContainsEmptyValue = false, ColumnNum = 2, selectedValue = 1
                },
                new DropDownsToEdit()
                {
                    ContainsEmptyValue = true, ColumnNum = 4, selectedValue = 1, ColumnName = "PeriodType"
                },
                new DropDownsToEdit()
                {
                    ContainsEmptyValue = true, ColumnNum = 5, selectedValue = 1
                }
            });

            GridHelper.ChangeTaxonomyDropDown();

            GridHelper.TestGrid();
        }