Hi,
I am using dependency injection to inject SftpClient into my code. Since there are no interfaces defined in this project I have written a wrapper/proxy around SftpClient so that I can inject a mock.
However, the proxy cannot be setup to return a list of SftpFiles since the SftpFile class has no public constructor. I can't mock the SftpFile since it has no interface and its methods are not virtual.
Would you consider modifying the code to make it possible to mock the SftpClient?
Thanks,
Matt
I am using dependency injection to inject SftpClient into my code. Since there are no interfaces defined in this project I have written a wrapper/proxy around SftpClient so that I can inject a mock.
However, the proxy cannot be setup to return a list of SftpFiles since the SftpFile class has no public constructor. I can't mock the SftpFile since it has no interface and its methods are not virtual.
Would you consider modifying the code to make it possible to mock the SftpClient?
Thanks,
Matt