Example #1
0
        public void ShowSharedLinks(DropboxFileMetaData sharedLinks)
        {
            _logger.Debug("DropboxSharedLinks started");
            var interaction = new DropboxSharedLinksInteraction(sharedLinks);

            _interactionInvoker.Invoke(interaction);
        }
        public void Setup()
        {
            var processStarter = NSubstitute.Substitute.For <IProcessStarter>();

            _viewModel   = new DropboxSharedLinksViewModel(new DropboxSharedLinksWindowTranslation(), processStarter);
            _interaction = new DropboxSharedLinksInteraction(new DropboxFileMetaData());
            _viewModel.SetInteraction(_interaction);
        }
Example #3
0
        public DesignTimeDropboxSharedLinksViewModel() : base(new DropboxSharedLinksWindowTranslation(), new ProcessStarter())
        {
            var interaction = new DropboxSharedLinksInteraction(new DropboxFileMetaData());

            SetInteraction(interaction);
            SharedLink = new DropboxFileMetaData();
            var link = new DropboxFileMetaData()
            {
                SharedUrl = "https://www.dropbox.com/test/SharedFile.pdf"
            };

            SharedLink = link;
        }