Ejemplo n.º 1
0
        public void TestNoIgnoredApps()
        {
            List <string> snapList = new List <string> {
                @".\Data\AADApplication1Snap.json", @".\Data\AADApplication2Snap.json"
            };
            List <string> snapResultsList = new List <string> {
                @".\Data\AADApplication1SnapResults.json", @".\Data\AADApplication2SnapResults.json"
            };
            ReportData reportData = TestUtility.PrepaPortfolioReportData(@".\Data\AADApplications.json", snapList, snapResultsList);

            var component = new PF_IgnoredApps();
            Dictionary <string, string> config = new Dictionary <string, string>();
            var table = component.Content(reportData, config);

            var expectedData = new List <string>();

            expectedData.AddRange(new List <string> {
                "Ignored Applications"
            });
            expectedData.AddRange(new List <string> {
                "No Ignored Applications"
            });
            TestUtility.AssertTableContent(table, expectedData, 1, 2);
            Assert.IsTrue(table.HasColumnHeaders);
        }
Ejemplo n.º 2
0
        public void TestIgnoredApps()
        {
            ReportData reportData = TestUtility.PrepaEmptyPortfolioReportData();

            var component = new PF_IgnoredApps();
            Dictionary <string, string> config = new Dictionary <string, string>();
            var table = component.Content(reportData, config);

            var expectedData = new List <string>();

            expectedData.AddRange(new List <string> {
                "Ignored Applications"
            });
            expectedData.AddRange(new List <string> {
                "Appli Ignor 1"
            });
            expectedData.AddRange(new List <string> {
                "Appli 2 Ignore"
            });
            TestUtility.AssertTableContent(table, expectedData, 1, 3);
            Assert.IsTrue(table.HasColumnHeaders);
        }