public ChooseImageFileViewModelTests()
 {
     _fileSystemService = Substitute.For<IFileSystemService>();
     _imageSelectionViewModel = Substitute.For<IImageSelectionViewModel>();
     _busyProvider = Substitute.For<IBusyProvider>();
     _path = @"C:\TV Shows\Adventure Time\fanart.jpg";
     _viewModel = new ChooseImageFileViewModel(_fileSystemService, _imageSelectionViewModel, _busyProvider, _path);
 }
Ejemplo n.º 2
0
 public ChooseImageFileViewModelTests()
 {
     _fileSystemService       = Substitute.For <IFileSystemService>();
     _imageSelectionViewModel = Substitute.For <IImageSelectionViewModel>();
     _busyProvider            = Substitute.For <IBusyProvider>();
     _path      = @"C:\TV Shows\Adventure Time\fanart.jpg";
     _viewModel = new ChooseImageFileViewModel(_fileSystemService, _imageSelectionViewModel, _busyProvider, _path);
 }
Ejemplo n.º 3
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 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);
        }