Exemplo n.º 1
0
 public void TestCameraProvider()
 {
     var provider = new TestService();
     var importService = new ImportService(provider, new FileSystemService(), new LogService(), new DateTimeService());
     var deviceManagerClass = new DeviceManagerClass();
     var deviceInfo = deviceManagerClass.DeviceInfos.Cast<DeviceInfo>().FirstOrDefault(p => string.Equals(p.DeviceID, provider.GetSettings().DeviceId, StringComparison.OrdinalIgnoreCase));
     var device = deviceInfo.Connect();
     importService.Import(new CameraPhotoProvider(device), null, null);
 }
Exemplo n.º 2
0
 public void TestFolderProvider()
 {
     var provider = new TestService();
     var importService = new ImportService(provider, new FileSystemService(), new LogService(), new DateTimeService());
     importService.Import(new FolderPhotoProvider(@"C:\Source", true), null, null);
 }