mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Console: Fix driver option for tests
This commit is contained in:
parent
87fc65a7f6
commit
ad2ba73a64
@ -1043,6 +1043,7 @@ public class CommandLineIntegrationTests : ContextualTests
|
||||
new AutomatedScanningOptions
|
||||
{
|
||||
NoProfile = true,
|
||||
Driver = ScanPerformer.SystemDefaultDriverName,
|
||||
Device = "name1",
|
||||
OutputPath = $"{FolderPath}/test.pdf",
|
||||
Verbose = true
|
||||
@ -1107,6 +1108,7 @@ public class CommandLineIntegrationTests : ContextualTests
|
||||
}).RunCommand(
|
||||
new AutomatedScanningOptions
|
||||
{
|
||||
Driver = ScanPerformer.SystemDefaultDriverName,
|
||||
ListDevices = true
|
||||
}, scanDriverFactoryMock);
|
||||
|
||||
|
@ -242,7 +242,7 @@ internal class AutomatedScanning
|
||||
{
|
||||
var profile = new ScanProfile
|
||||
{
|
||||
DriverName = ScanOptionsValidator.SystemDefaultDriver.ToString().ToLowerInvariant()
|
||||
DriverName = ScanPerformer.SystemDefaultDriverName
|
||||
};
|
||||
await SetProfileOverrides(profile);
|
||||
|
||||
|
@ -26,6 +26,9 @@ internal class ScanPerformer : IScanPerformer
|
||||
};
|
||||
}
|
||||
|
||||
public static string SystemDefaultDriverName =>
|
||||
ScanOptionsValidator.SystemDefaultDriver.ToString().ToLowerInvariant();
|
||||
|
||||
private readonly ScanningContext _scanningContext;
|
||||
private readonly IDevicePrompt _devicePrompt;
|
||||
private readonly Naps2Config _config;
|
||||
|
Loading…
Reference in New Issue
Block a user