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);
 }
        public void SetUp()
        {
            var albumeSettingsMock = new Mock<IAlbumeSettingsService>();
            albumeSettingsMock.Setup(p => p.GetSettings())
                .Returns(
                    new AlbumeSettings
                        {
                            AlbumeRootPath = AlbumeRootPath,
                            EmptyDatePathFormat = @"Unsorted\{0:dd.MM.yyyy}",
                            PhotoTakenDateToPathFormat = @"{0:yyyy}\{0:MM. MMMM}\{0:dd}",
                            DeviceId = @"{EEC5AD98-8080-425f-922A-DABF3DE3F69A}\0000"
                        });

            this.fileSystemMock = new Mock<IFileSystemService>();

            var photoProviderMock = new Mock<IPhotoProvider>();
            photoProviderMock.Setup(p => p.GetPhotos()).Returns(() => this.photos);
            this.photoProvider = photoProviderMock.Object;

            var dateMock = new Mock<IDateTimeService>();
            dateMock.Setup(p => p.GetCurrentDateTime()).Returns(new DateTime(2010, 7, 1));

            this.importService = new ImportService(albumeSettingsMock.Object, this.fileSystemMock.Object, new LogService(), dateMock.Object);
        }
 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);
 }