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); }
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); }