From cefdc203d98cd890815e029bc759bc43ec5a9643 Mon Sep 17 00:00:00 2001 From: Eric Brumfield Date: Sun, 19 Jul 2020 12:49:12 -0400 Subject: [PATCH] Add ISftpClient interface to SftpClient (#197) Add ISftpClient interface to **SftpClient for mocking and testing purposes. Fixes #193. --- .../Renci.SshNet.Silverlight.csproj | 3 + .../Renci.SshNet.Silverlight5.csproj | 3 + .../Renci.SshNet.UAP10.csproj | 3 + .../Renci.SshNet.WindowsPhone.csproj | 3 + .../Renci.SshNet.WindowsPhone8.csproj | 5 +- src/Renci.SshNet/ISftpClient.cs | 1065 +++++++++++++++++ src/Renci.SshNet/SftpClient.cs | 2 +- 7 files changed, 1082 insertions(+), 2 deletions(-) create mode 100644 src/Renci.SshNet/ISftpClient.cs diff --git a/src/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj b/src/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj index 6769eabff..39f66a0ec 100644 --- a/src/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj +++ b/src/Renci.SshNet.Silverlight/Renci.SshNet.Silverlight.csproj @@ -1183,6 +1183,9 @@ SftpClient.cs + + + ISftpClient.cs Sftp\Flags.cs diff --git a/src/Renci.SshNet.Silverlight5/Renci.SshNet.Silverlight5.csproj b/src/Renci.SshNet.Silverlight5/Renci.SshNet.Silverlight5.csproj index 6892d3b63..fb59067a6 100644 --- a/src/Renci.SshNet.Silverlight5/Renci.SshNet.Silverlight5.csproj +++ b/src/Renci.SshNet.Silverlight5/Renci.SshNet.Silverlight5.csproj @@ -1189,6 +1189,9 @@ SftpClient.cs + + + ISftpClient.cs Sftp\Flags.cs diff --git a/src/Renci.SshNet.UAP10/Renci.SshNet.UAP10.csproj b/src/Renci.SshNet.UAP10/Renci.SshNet.UAP10.csproj index 0e66873e7..bc78664db 100644 --- a/src/Renci.SshNet.UAP10/Renci.SshNet.UAP10.csproj +++ b/src/Renci.SshNet.UAP10/Renci.SshNet.UAP10.csproj @@ -381,6 +381,9 @@ ISession.cs + + ISftpClient.cs + ISubsystemSession.cs diff --git a/src/Renci.SshNet.WindowsPhone/Renci.SshNet.WindowsPhone.csproj b/src/Renci.SshNet.WindowsPhone/Renci.SshNet.WindowsPhone.csproj index 9e1d2da00..6f7d4576c 100644 --- a/src/Renci.SshNet.WindowsPhone/Renci.SshNet.WindowsPhone.csproj +++ b/src/Renci.SshNet.WindowsPhone/Renci.SshNet.WindowsPhone.csproj @@ -1168,6 +1168,9 @@ SftpClient.cs + + + ISftpClient.cs Sftp\Flags.cs diff --git a/src/Renci.SshNet.WindowsPhone8/Renci.SshNet.WindowsPhone8.csproj b/src/Renci.SshNet.WindowsPhone8/Renci.SshNet.WindowsPhone8.csproj index 9fe3202e0..cac461773 100644 --- a/src/Renci.SshNet.WindowsPhone8/Renci.SshNet.WindowsPhone8.csproj +++ b/src/Renci.SshNet.WindowsPhone8/Renci.SshNet.WindowsPhone8.csproj @@ -358,6 +358,9 @@ ISession.cs + + ISftpClient.cs + ISubsystemSession.cs @@ -1441,7 +1444,7 @@ - +