public AlbumsViewModel(IMediaUploadService uploadService, IAlbumContext albumContext)
        {
            if (albumContext == null)
                throw new ArgumentNullException("albumContext", "albumContext is null.");

            _controller = uploadService;
            CreateAlbumCommand = new CreateAlbumCommand(uploadService);
            LoadAlbumsCommand = new LoadAlbumsCommand(uploadService);
            _albumContext = albumContext;
        }
        public UploadPhotosViewModel(IMediaUploadService uploadService, IAlbumContext albumContext)
        {
            if (uploadService == null)
                throw new ArgumentNullException("uploadService", "picasaController is null.");
            if (albumContext == null)
                throw new ArgumentNullException("albumContext", "albumContext is null.");

            UploadService = uploadService;
            _albumContext = albumContext;
            Files = new List<string>();
            UploadCommand = new UploadPhotoCommand(uploadService);
        }
Beispiel #3
0
 public AlbumRepository(IAlbumContext context)
 {
     _context = context;
 }
 public PhotoUploadDialog(IAlbumContext context, PhotoUploadViewModel viewModel)
 {
 }
 public EntityFrameworkArtistRepository(IAlbumContext context)
 {
     _context = context;
 }