public void TestContentLimitCount()
        {
            List <string> snapList = new List <string> {
                @".\Data\AADApplication1Snap.json", @".\Data\AADApplication2Snap.json"
            };
            List <string> snapResultsList = new List <string> {
                @".\Data\AAD2App3Snap4Results.json", @".\Data\AAD2App24Snap12Results.json"
            };
            ReportData reportData = TestUtility.PrepaPortfolioReportData(@".\Data\AADApplications.json", snapList, snapResultsList);

            var component = new PortfolioTopRiskiestApps();
            Dictionary <string, string> config = new Dictionary <string, string>
            {
                { "ALT", "60017" },
                { "COUNT", "1" }
            };
            var table = component.Content(reportData, config);

            var expectedData = new List <string>();

            expectedData.AddRange(new List <string> {
                "Application", "Critical Violations", "TQI", "Snapshot Date"
            });
            expectedData.AddRange(new List <string> {
                "Big Ben", "616", "2.23", "Nov 15 2013"
            });
            TestUtility.AssertTableContent(table, expectedData, 4, 2);
            Assert.IsTrue(table.HasColumnHeaders);
        }
        public void TestContentEfficiency()
        {
            List <string> snapList = new List <string> {
                @".\Data\AADApplication1Snap.json", @".\Data\AADApplication2Snap.json"
            };
            List <string> snapResultsList = new List <string> {
                @".\Data\AAD2App3Snap4Results.json", @".\Data\AAD2App24Snap12Results.json"
            };
            ReportData reportData = TestUtility.PrepaPortfolioReportData(@".\Data\AADApplications.json", snapList, snapResultsList);

            var component = new PortfolioTopRiskiestApps();
            Dictionary <string, string> config = new Dictionary <string, string>
            {
                { "ALT", "60014" }
            };
            var table = component.Content(reportData, config);

            var expectedData = new List <string>();

            expectedData.AddRange(new List <string> {
                "Application", "Critical Violations", "Efficiency", "Snapshot Date"
            });
            expectedData.AddRange(new List <string> {
                "Big Ben", "151", "1.32", "Nov 15 2013"
            });
            expectedData.AddRange(new List <string> {
                "AppliAEPtran", "198", "1.88", "Jul 13 2016"
            });
            TestUtility.AssertTableContent(table, expectedData, 4, 3);
            Assert.IsTrue(table.HasColumnHeaders);
        }