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; }
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; }
public AlbumsLoader(IPhotosDbContext context, string rootDirectory) { _context = context; _rootDirectory = rootDirectory; _placeRegister = new PlaceRegister(context); }