1
0
mirror of https://github.com/winscp/winscp.git synced 2026-10-24 02:28:55 +03:00

7 Commits

Author SHA1 Message Date
Michael Kent
531bbb770a Issue 856 – Define and implement interface for the .NET library
https://winscp.net/tracker/856
----
@mjkent: Add interfaces to .NET assembly for improved testability
This PR extracts interfaces from the main WinSCP .NET assembly classes (Session, SessionOptions, TransferOptions, etc.), enabling:

Unit testing - Mock ISession to test code that uses WinSCP without requiring actual SFTP/FTP connections
Dependency injection - Register interfaces in DI containers for cleaner architecture
Decoupling - Program against abstractions rather than concrete implementations
This change should be non-breaking, but I'm new to this project so review and feedback appreciated!
2025-12-11 15:15:29 +01:00
Martin Prikryl
78506ae1b7 Transfer settings that do not have a dedicated scripting switch or a .NET TransferSettings property can be set using -rawtransfesettings switch or TransferSettings.AddRawSettings method + Generated script/code can generate these + Tests that previously used AddRawConfiguration(@"Interface\CopyParam\...), use AddRawSettings now. + It's possible to limit number of command line parameters used for open-ended switches like -rawconfig, -rawsettings and -rawtransfesettings using syntax -switch[count] + Fixing GetFilesExcludeEmptyDirectories test (it didn't upload hidden files previously)
Source commit: 4a84ba5ed0f2f09f4815c11cb4714e0c2ef7fc12
2018-10-12 01:45:30 +02:00
Martin Prikryl
304502f299 Bug 1504: Wrong message when setting TransferOptions.OverwriteMode property to an invalid value
https://winscp.net/tracker/1504

Source commit: ad16a25e175ce048a18cef82165cead9767e6e48
2018-01-28 03:52:11 +01:00
Martin Prikryl
04fab653e6 Not using "my" prefix for VB.NET variables + No redundant declaration of Session variable type + Bug fix: Session timeout was incorrectly set in seconds, instead of milliseconds + Using -Property switch to initialize SessionOptions properties in PowerShell + Generating code for transfer settings + TransferOptions.ResumeSupport is settable + Setting TransferResumeSupport.Threshold automatically sets State to Smart
Source commit: ce746f6a04b2557b7fa77e1dbabdf41bb61de248
2018-01-25 15:06:04 +01:00
Martin Prikryl
d8f92984b9 First public commit of dev branch
Source commit: 98cb9d870efc1c60826db4398ec35c5cbe809e6a
2018-01-24 14:13:46 +01:00
Martin Prikryl
26b6b13bc8 5.6 2018-01-11 15:36:22 +01:00
Martin Prikryl
2e4b4738f0 5.2 2018-01-11 15:30:21 +01:00