public void Can_export_report_data() { // Arrange BrandTestHelper.CreateCulture("en-TS", "English (Test)"); var filteredRecords = ReportController.FilterAndOrder( _reportQueries.GetLanguageRecordsForExport(), new LanguageRecord(), "Created", "asc"); // Act var content = Encoding.Unicode.GetString(ReportController.ExportToExcel(filteredRecords)); // Assert Assert.AreNotEqual(content.IndexOf("<table"), -1); }
public ActionResult ExportLanguageReport(LanguageRecord filters, string sortColumnName, string sortOrder, string hiddenColumns = null) { return(ExportReport(_queries.GetLanguageRecordsForExport(), filters, sortColumnName, sortOrder, hiddenColumns)); }