public void InitModel()
        {
            ReportModel m = ReportGenerationHelper.CreateModel(reportName, false);

            Assert.AreEqual(reportName, m.ReportSettings.ReportName);
            Assert.AreEqual(1, m.ReportSettings.AvailableFieldsCollection.Count);
            Assert.AreEqual(GlobalEnums.ReportType.DataReport, m.ReportSettings.ReportType);
        }
        public void SortColumCollection_Sorting_Should_Set()
        {
            ReportModel m  = ReportGenerationHelper.CreateModel(reportName, false);
            var         rs = m.ReportSettings;

            SortColumn gc = new SortColumn("GroupItem", ListSortDirection.Ascending);

            rs.SortColumnsCollection.Add(gc);

            Assert.AreEqual(rs.SortColumnsCollection.Count, 1);
        }
        public void CanAddGroupColumn()
        {
            ReportModel m  = ReportGenerationHelper.CreateModel(reportName, false);
            var         rs = m.ReportSettings;

            GroupColumn gc = new GroupColumn("GroupItem", 1, ListSortDirection.Ascending);

            rs.GroupColumnsCollection.Add(gc);

            Assert.AreEqual(rs.GroupColumnsCollection.Count, 1);
        }
        public void SortColumnCollection_Should_Empty()
        {
            ReportModel m = ReportGenerationHelper.CreateModel(reportName, false);

            Assert.That(m.ReportSettings.SortColumnsCollection, Is.Empty);
        }
        public void Datamodel_Should_PushModel()
        {
            ReportModel m = ReportGenerationHelper.CreateModel(reportName, false);

            Assert.AreEqual(GlobalEnums.PushPullModel.PushData, m.ReportSettings.DataModel);
        }
 public void Init()
 {
     this.reportModel = ReportGenerationHelper.CreateModel(reportName, false);
 }
示例#7
0
        public void Init()
        {
            bool createGrouping = true;

            this.reportModel = ReportGenerationHelper.CreateModel(reportName, createGrouping);
        }