Exemple #1
0
 public PhotoFrameApplication(IAlbumRepository albumRepository, IPhotoRepository photoRepository)
 {
     this.createAlbum   = new CreateAlbum(albumRepository);
     this.findDirectory = new FindDirectory(albumRepository, photoRepository);
     this.findAlbums    = new FindAlbums(albumRepository);
     this.findPhotos    = new FindPhotos(photoRepository);
     this.changeAlbum   = new ChangeAlbum(albumRepository, photoRepository);
 }
Exemple #2
0
 public PhotoFrameApplication(IAlbumRepository albumRepository, IPhotoRepository photoRepository, IPhotoFileService photoFileService)
 {
     this.createAlbum     = new CreateAlbum(albumRepository);
     this.searchAlbum     = new SearchAlbum(photoRepository);
     this.searchDirectory = new SearchDirectory(photoRepository, photoFileService);
     this.toggleFavorite  = new ToggleFavorite(photoRepository);
     this.changeAlbum     = new ChangeAlbum(albumRepository, photoRepository);
 }