Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Created Unassigned: Mocking [2792]

$
0
0
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

Viewing all articles
Browse latest Browse all 1026

Trending Articles