Beispiel #1
0
        public void CanCreateContentFromFile()
        {
//			ReportModel model = ReportModel.Create();
//			Properties customizer = new Properties();
//			customizer.Set("ReportLayout",GlobalEnums.ReportLayout.ListLayout);
//			IReportGenerator generator = new GeneratePlainReport(model,customizer);
//			generator.GenerateReport();
//			MockOpenedFile mof = new MockOpenedFile(GlobalValues.PlainFileName);
            OpenedFile file = new MockOpenedFile(GlobalValues.PlainFileName);
//			file.SetData(generator.Generated.ToArray());

            //ICSharpCode.SharpDevelop.Gui.IViewContent v = displayBinding.CreateContentForFile(new MockOpenedFile("test.srd"));
            //Assert.IsNotNull(v,"View should not be 'null'");
        }
		public void CanCreateContentFromFile ()
		{
//			ReportModel model = ReportModel.Create();
//			Properties customizer = new Properties();
//			customizer.Set("ReportLayout",GlobalEnums.ReportLayout.ListLayout);
//			IReportGenerator generator = new GeneratePlainReport(model,customizer);
//			generator.GenerateReport();
//			MockOpenedFile mof = new MockOpenedFile(GlobalValues.PlainFileName);
			OpenedFile file = new MockOpenedFile(GlobalValues.PlainFileName);
//			file.SetData(generator.Generated.ToArray());
			
			//ICSharpCode.SharpDevelop.Gui.IViewContent v = displayBinding.CreateContentForFile(new MockOpenedFile("test.srd"));
			//Assert.IsNotNull(v,"View should not be 'null'");
		}
		public void CanCreateContentFromFile ()
		{
			ReportModel model = ReportModel.Create();
		ReportStructure reportStructure = new ReportStructure()
			{
				ReportLayout = GlobalEnums.ReportLayout.ListLayout
			};
			IReportGenerator generator = new GeneratePlainReport(model,reportStructure);
			generator.GenerateReport();
			MockOpenedFile mof = new MockOpenedFile(GlobalValues.PlainFileName);
			OpenedFile file = new MockOpenedFile(GlobalValues.PlainFileName);
			file.SetData(generator.Generated.ToArray());
			
			//ICSharpCode.SharpDevelop.Gui.IViewContent v = displayBinding.CreateContentForFile(new MockOpenedFile("test.srd"));
			//Assert.IsNotNull(v,"View should not be 'null'");
		}