chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
+1 vote

How to mock the GenerateReport() of CrystalReportsColdReportHack class. While mocking this method, I'm 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 please suggest how to implement..

asked by (6.1k points)

1 Answer

0 votes
answered by (2.5k points)
...