Ejemplo n.º 1
0
 public ImageSelectionViewModel(IFileSystemService fileSystemService,
                                IBusyProvider busyProvider,
                                string path,
                                bool horizontalAlignement)
     : base(busyProvider, new Image {
     Url = path
 })
 {
     _fileSystemService = fileSystemService;
     _path = path;
     HorizontalAlignement = horizontalAlignement;
     Download             = new ChooseImageFileViewModel(fileSystemService, this, busyProvider, path);
 }
 public DownloadCommandTests()
 {
     _chooseImageViewModel = Substitute.For<IChooseImageFileViewModel>();
     _command = new DownloadCommand(_chooseImageViewModel);
 }
Ejemplo n.º 3
0
 public DownloadCommand(IChooseImageFileViewModel chooseImageViewModel)
 {
     _chooseImageViewModel = chooseImageViewModel;
     _chooseImageViewModel.PropertyChanged += ChooseImageViewModelPropertyChanged;
 }
 public LoadFileCommandTests()
 {
     _chooseImageViewModel = Substitute.For <IChooseImageFileViewModel>();
     _command = new LoadFileCommand(_chooseImageViewModel);
 }
Ejemplo n.º 5
0
 public LoadFileCommand(IChooseImageFileViewModel chooseImageViewModel)
 {
     _chooseImageViewModel = chooseImageViewModel;
     _chooseImageViewModel.PropertyChanged += ChooseImageViewModelPropertyChanged;
 }