public ActionResult <ExportResult> Export(ExportLayout layout) { ExportImportService <T> tempService = new ExportImportService <T>(_context); var export = tempService.GetExportResult(layout); return(Ok(export)); }
public void GetNullTest() { InitData("GetNullTest"); var exportResult = _exportService.GetExportResult(new ExportLayout() { EntityPrimaryValue = "542c31f0-35e3-4a7d-a939-803f18f94668" // Wrong ID }); Assert.Null(exportResult.EntityData); }