Skip to content

Mocks & New IRoboCommand for non-windows platforms#217

Draft
RFBomb wants to merge 11 commits intoPCAssistSoftware:devfrom
RFBomb:Extensions.Mocks
Draft

Mocks & New IRoboCommand for non-windows platforms#217
RFBomb wants to merge 11 commits intoPCAssistSoftware:devfrom
RFBomb:Extensions.Mocks

Conversation

@RFBomb
Copy link
Contributor

@RFBomb RFBomb commented Mar 25, 2026

I required some mocks for my project, so I opted to add them into the Extensions package.
To make best use of the mocks, I'm also creating a new IRoboCommand to fully simulate the actions of RoboCopy via the IFileCopierFactory interfaces that were introduced a while back. This would allow full control of the copy and logging process by consumers that want it, and should also allow for cross-platform usage via custom IFileCopiers (like the StreamedFileCopier)

This is still WIP, as its not passing all unit tests 1:1 with robocopy, but a chunk of them are functional.

RFBomb added 2 commits March 25, 2026 17:04
- This new IRoboCommand utilizes the IFileCopierFactory to perform copy operations without creating a new RoboCopy process. This allows full control over the actual copy operation if desired, and allows for cross-platform targeting if needed.
- Added IAuthenticator to allow customization of the FactoryCommand's authentication prior to starting the command. By default simply verifies it can access source and destination.
- Adjusted helpers and extension methods as needed.
@PCAssistSoftware
Copy link
Owner

nice, I will keep following the progress of these changes. Thanks Robert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants