public void GetReport_GetReport1_ReportPropertiesAreCorrect() { var target = new ReportRepository(); var report = target.GetReport("report1"); Assert.IsNotNull(report); Assert.AreEqual("Audit Recap Report", report.Name); Assert.IsTrue(string.IsNullOrEmpty(report.Description) == false); Assert.AreEqual("/themes/default/theme.css", report.ThemeFile); Assert.IsTrue(string.IsNullOrEmpty(report.ScriptFile) == false); Assert.IsTrue(string.IsNullOrEmpty(report.TemplateLayoutFile) == false); }
public void GetReports_Execute_AtLeastOneReportExists() { var target = new ReportRepository(); var actual = target.GetReports(); Assert.IsTrue(actual.Count > 0); }