Exemplo n.º 1
0
        private static void GetReport(ConsoleSwitches arguments, ReleaseExtractor extractor, BPRunner bpRunner)
        {
            var profile = RuleProfile.LoadFromFile();
            var rules   = bpRunner.GetRulesFromProfile(profile);
            var results = bpRunner.RunProfile(profile, extractor.Release);
            var report  = new ExcelOutputGenerator();

            report.CreateReport(arguments.ReportFile.FullName, profile, rules, results, extractor.Release);
        }
Exemplo n.º 2
0
        private void GetReportStream(Stream inputFile, MemoryStream outputSream)
        {
            var xml = default(string);

            using (var streamReader = new StreamReader(inputFile))
            {
                xml = streamReader.ReadToEnd();
            }
            var extractor = new ReleaseExtractor(xml);

            extractor.Load();
            var bpRunner = new BPRunner();
            var profile  = RuleProfile.LoadFromFile();
            var rules    = new RuleExtractor().GetRulesFromAssembly(typeof(StageHelper).Assembly);
            var results  = bpRunner.RunProfile(profile, extractor.Release);
            var report   = new ExcelOutputGenerator();

            report.CreateReport(outputSream, profile, rules, results, extractor.Release);
        }