public ChooseImageFileViewModel(IFileSystemService fileSystemService,
            IImageSelectionViewModel imageSelectionViewModel,
            IBusyProvider busyProvider,
            string path)
        {
            _fileSystemService = fileSystemService;
            _imageSelectionViewModel = imageSelectionViewModel;
            _busyProvider = busyProvider;
            _path = path;

            DownloadCommand = new DownloadCommand(this);
            LoadFileCommand = new LoadFileCommand(this);
        }
Exemple #2
0
        public ChooseImageFileViewModel(IFileSystemService fileSystemService,
                                        IImageSelectionViewModel imageSelectionViewModel,
                                        IBusyProvider busyProvider,
                                        string path)
        {
            _fileSystemService       = fileSystemService;
            _imageSelectionViewModel = imageSelectionViewModel;
            _busyProvider            = busyProvider;
            _path = path;

            DownloadCommand = new DownloadCommand(this);
            LoadFileCommand = new LoadFileCommand(this);
        }
 public DownloadCommandTests()
 {
     _chooseImageViewModel = Substitute.For<IChooseImageFileViewModel>();
     _command = new DownloadCommand(_chooseImageViewModel);
 }
 public DownloadCommandTests()
 {
     _chooseImageViewModel = Substitute.For <IChooseImageFileViewModel>();
     _command = new DownloadCommand(_chooseImageViewModel);
 }