public DropboxAuthenticationWindowViewModel(IDropboxService dropboxService, DropboxAppData dropboxAppData, DropboxAuthenticationWindowTranslation translation)
 {
     _dropboxService     = dropboxService;
     _dropboxData        = dropboxAppData;
     Translation         = translation;
     CancelDialogCommand = new DelegateCommand(CancelInputDialog);
 }
 public DropboxUserInfoManager(IDropboxService dropboxService, DropboxAppData dropboxAppData,
                               IDropboxHttpListener dropboxHttpListener, IDropboxCodeExchanger dropboxCodeExchanger)
 {
     _dropboxService       = dropboxService;
     _dropboxAppData       = dropboxAppData;
     _dropboxHttpListener  = dropboxHttpListener;
     _dropboxCodeExchanger = dropboxCodeExchanger;
 }
        public void Setup()
        {
            _dropboxService = Substitute.For <IDropboxService>();
            var x = new DropboxAppData("", redirectUri);

            _viewModel   = new DropboxAuthenticationWindowViewModel(_dropboxService, x, new DropboxAuthenticationWindowTranslation());
            _interaction = new DropboxInteraction();
            _viewModel.SetInteraction(_interaction);
        }
        public void Setup()
        {
            var translationUpdater = new TranslationUpdater(new TranslationFactory(), new ThreadManager());

            _translation    = new DropboxTranslation();
            _dropboxService = Substitute.For <IDropboxService>();
            _dropboxService.ParseAccessToken(Arg.Any <Uri>()).Returns("AccessAccount");
            _dropboxAppData     = new DropboxAppData("DummieAppKeyForTest", _redirectUri);
            _viewModel          = new DropboxAccountViewModel(_dropboxService, _dropboxAppData, translationUpdater);
            _accountInteraction = new DropboxAccountInteraction();
            _viewModel.SetInteraction(_accountInteraction);
        }
Ejemplo n.º 5
0
 public DropboxAccountViewModel(IDropboxService dropboxService, DropboxAppData dropboxAppData, ITranslationUpdater translationUpdater)
     : base(translationUpdater)
 {
     _dropboxService = dropboxService;
     _dropboxData    = dropboxAppData;
 }