public void TestCreateReportQueueItem()
        {
            int period = 201101;
            //ReportGenerationBatch batch = new ReportGenerationBatch();

            ReportGenerationQueue reportGenerationQueue = new ReportGenerationQueueBuilder(new ReportGenerationBatchBuilder(),
                period,
                "Profitability Report").Build();

               /* batch.Name = period.ToString() + " - " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:sss");
            batch.InsertedDate = DateTime.Now;
            batch.StaffNTLogin = "******";
            batch.StaffId = 0;

            var reportParameter = GetProfitabilityReportItem();
            ReportGenerationQueue reportGenerationQueue = new ReportGenerationQueue();
            reportGenerationQueue.ReportGenerationBatch = batch;
            reportGenerationQueue.ReportId = reportParameter.SavedReportParameterId;
            reportGenerationQueue.Period = period;
            reportGenerationQueue.StaffId = 0;
            reportGenerationQueue.ReportStatusId = GRP.BusinessLayer.Automation.Enums.ReportStatus.Queued;
            reportGenerationQueue.InsertedDate = DateTime.Now;
            reportGenerationQueue.MustDeliverReportToTestLocation = true;
            reportGenerationQueue.QueryText = "";
            reportGenerationQueue.ExecutionLog = "";*/

            reportGenerationQueue.ReportGenerationBatch.ReportGenerationQueues.Add(reportGenerationQueue);
            var dao = new GenerationDaoBuilder().Build();
            dao.Insert<ReportGenerationBatch>(reportGenerationQueue.ReportGenerationBatch);
            dao.SubmitChanges();

            GenerateReportByQueueId(reportGenerationQueue.ReportGenerationQueueId);
        }
        public void ShouldIntegrateV2ExpenseCzarTotalComparison()
        {
            GRP.BusinessLayer.Automation.Entities.ReportGenerationQueue reportGenerationQueue =
                new ReportGenerationQueueBuilder(new ReportGenerationBatchBuilder(),
                    201107,
                    "Expense Czar Expense Type Report").Build();

            var processor = new ReportQueueItemProcessorIntegrationBuilder(reportGenerationQueue.ReportGenerationQueueId).Build();
            processor();
        }