I have some method which read the file by the path HostingEnvironment.MapPath("filepath"). From unit test HostingEnvironment.MapPath always returning null.
How can i setup the mock requestcontext to return proper file path in web api controller 2?
I have some method which read the file by the path HostingEnvironment.MapPath("filepath"). From unit test HostingEnvironment.MapPath always returning null.
How can i setup the mock requestcontext to return proper file path in web api controller 2?