public void GetUserInfo_WhenExecucted_SetInteractionToSuccess()
        {
            var wascalled = false;

            _viewModel.FinishInteraction = () => wascalled = true;
            _dropboxService.GetDropUserInfo().Returns(new DropboxUserInfo()
            {
                AccessToken = "", AccountId = "", AccountInfo = ""
            });
            _viewModel.SetAccessTokenAndUserInfo(new Uri(redirectUri));
            Assert.IsTrue(_interaction.Success);
            Assert.IsTrue(wascalled);
        }
예제 #2
0
 /// <summary>
 ///     Event fired when user enter his credentials into dropbox form and hits enter.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void BrowserNavigating(object sender, NavigatingCancelEventArgs e)
 {
     _viewModel.SetAccessTokenAndUserInfo(e.Uri);
 }