public void Should_ConvertStreamToOutputFiles()
        {
            var reportGenerator = new FakeReportGenerator(
                new FakeReportParameter()
                {
                    MustDeliverReportToTestLocation = false,
                    ReportType = ReportType.ProfitabilityReport,
                    ReportPeriod = 201101
                },
                new ReportGenerationConfiguration(new AppSettingsProvider()),
                new ReportQueueStatusWCFService()
                );

            var generator = new AbstractReportGenerator_Accessor(new PrivateObject(reportGenerator));

            generator.ConvertStreamToOutputFiles(new System.IO.MemoryStream());
        }
        public void Should_Generate_Output_Files_On_Test()
        {
            //var reportGenerator = new FakeReportGenerator(
            //    new FakeReportParameter()
            //    {
            //        MustDeliverReportToTestLocation = false,
            //        ReportType = ReportType.ProfitabilityReport,
            //        ReportPeriod = 201101
            //    }
            //    );
            //ConfigurationManager.ConnectionStrings["GRP"].ConnectionString = @"server=TSSQL-CDTTEST3\CDT$TEST3;database=GRP_V2;Integrated Security=True";
            //ConfigurationManager.ConnectionStrings["GrReporting"].ConnectionString = @"server=TSSQL-REPORTING-DWTEST\TEST;database=GrReporting;Integrated Security=true;";
            //ConfigurationManager.ConnectionStrings["GACS"].ConnectionString = @"Data Source=TSSQL-CDTTEST3\CDT$TEST3;Initial Catalog=GACS;Integrated Security=true;";

            ConfigurationManager.AppSettings["ExportDirectory"] = @"\\obtssql10\Reports\Generated";
            ConfigurationManager.AppSettings["ExportTestDirectory"] = @"\\obtssql10\Reports\TEST\";
            ConfigurationManager.AppSettings["TempFileDirectory"] = @"\\obtssql10\Reports\Temp\";
            ConfigurationManager.AppSettings["TemplateDirectory"] = @"\\obtssql10\Reports\Templates\";

            var genericDao = DataAccessFactory.Create<GenericDao>();
            var generationDao = DataAccessFactory.CreateWithSameContext<GenerationDao>(genericDao);

            int queueId = new ReportGenerationQueueBuilder()
                .WithGenerationDao(generationDao)
                .WithPeriod(201001)
                .WithReforecastQuarterName("Q0")
                .WithReportId(635)
                .WithStaffFolderLocation()
                .Build();

            var generator = ReportGeneratorFactory.GetReportGenerator(queueId);

            var generatorAccessor = new AbstractReportGenerator_Accessor(new PrivateObject(generator));

            generatorAccessor.ConvertStreamToOutputFiles(new System.IO.MemoryStream());
        }