You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Methods to ISftpClient to make Moq Testable #1015
It would be great if there were more methods from SFTP client in ISftp Client (such as connect) so that in dependency injecting Moq unit tests, you can setup and verify the expressions.
Activity
Pieeer1 commentedon Oct 20, 2022
Found a couple posts related to this that are closed, however it is still an issue. Current workaround found was:
Where _sftpClient is the interface and your dependency injection looks like:
Fix found here: #975
Pieeer1 commentedon Oct 20, 2022
Additionally, There needs to be an interface for SftpFile, or the class needs to have a more accessible constructor.
WojciechNagorski commentedon Aug 25, 2023
ISftpClient has been implemented