public void CheckIsDropboxUserData_WhenExecucted_InsideInteraction()
        {
            _viewModel.FinishInteraction = () => { };
            var currentDropboxUser = new DropboxUserInfo()
            {
                AccessToken = "AccessToken",
                AccountId   = "AccountId",
                AccountInfo = "AccountInfo"
            };

            _dropboxService.GetDropUserInfo().Returns(currentDropboxUser);
            _viewModel.SetAccessTokenAndUserInfo(new Uri(redirectUri));
            Assert.AreEqual(_interaction.AccessToken, currentDropboxUser.AccessToken);
            Assert.AreEqual(_interaction.AccountId, currentDropboxUser.AccountId);
            Assert.AreEqual(_interaction.AccountInfo, currentDropboxUser.AccountInfo);
        }
        public void SetAccessTokenAndUserInfo_ArgumentUriIsRedirectUrl_InInteractionContainsNewDropboxAccount()
        {
            _viewModel.FinishInteraction = () => { };
            var dropboxUserInfo = new DropboxUserInfo()
            {
                AccessToken = "AccessToken",
                AccountId   = "AccountId",
                AccountInfo = "AccountInfo"
            };

            _dropboxService.GetDropUserInfo(Arg.Any <string>()).Returns(dropboxUserInfo);

            _viewModel.SetAccessTokenAndUserInfo(new Uri(_redirectUri));

            Assert.AreEqual(_accountInteraction.DropboxAccount.AccessToken, dropboxUserInfo.AccessToken);
            Assert.AreEqual(_accountInteraction.DropboxAccount.AccountId, dropboxUserInfo.AccountId);
            Assert.AreEqual(_accountInteraction.DropboxAccount.AccountInfo, dropboxUserInfo.AccountInfo);
        }