How to mock the GenerateReport() of CrystalReportsColdReportHack class. While mocking this method I am getting key not found in dictionary but if I mock and pass null as parameter in method its working.
public static MemoryStream GenerateReport<T>(Func<ReportDocument, MemoryStream> execute)
How to mock and what parameter I need to pass for the above method?
Can you pllease suggest how to implement?