I am unit testing a new API. I need to write a test method to call a method that converts excel to datatable using ExcelDataReader.DataSet.
The ExcelDataReader library documentation doesn't indicate that there is any method to go form a dataset to an excel file with it. The REST method in the controller for the API takes in the file as an IFormFile. So I need to go from DataTable/DataSet to an IFormFile that can be identified as an xlsx.
How do you go from DataTable to IFormfile(Excel) in .net core?