Ejemplo n.º 1
0
        public AlbumCreator(IPhotosDbContext context, AlbumOverview photosOverview, PlaceRegister placeRegister, IEnumerable <IPhotoImage> photoImages)
        {
            Verifiers.ArgNullVerify(photosOverview, nameof(photosOverview));

            _context        = context;
            _photosOverview = photosOverview;
            _place          = placeRegister.Register(_photosOverview.Place, _photosOverview.City, _photosOverview.Country);
            _photoImages    = photoImages;
        }
Ejemplo n.º 2
0
        public AlbumLoader(IPhotosDbContext context, PlaceRegister placeRegister, string rootDirectory)
        {
            Verifiers.ArgNullVerify(!rootDirectory.IsNullOrEmpty(), nameof(rootDirectory));
            Verifiers.Verify(Directory.Exists(rootDirectory), "Specified directory does not exist: {0}", rootDirectory);

            _context       = context;
            _placeRegister = placeRegister;
            _rootDirectory = rootDirectory;
        }
Ejemplo n.º 3
0
 public AlbumsLoader(IPhotosDbContext context, string rootDirectory)
 {
     _context       = context;
     _rootDirectory = rootDirectory;
     _placeRegister = new PlaceRegister(context);
 }