Exemple #1
0
            public async Task ClearsPrivateSharedStorage()
            {
                doNotShowConfirmationDialog();
                await ViewModel.TryLogout();

                PrivateSharedStorageService.Received().ClearAll();
            }
Exemple #2
0
            public async Task ClearsPrivateSharedStorage()
            {
                doNotShowConfirmationDialog();

                ViewModel.TryLogout.Execute();
                TestScheduler.Start();

                PrivateSharedStorageService.Received().ClearAll();
            }
            public void ReturnsTrueAndStoresTheUserDataIfUserIsInTheDatabaseButNotInThePrivateStorage()
            {
                PrivateSharedStorageService.HasUserDataStored().Returns(false);
                var observable = Observable.Return <IDatabaseUser>(FoundationUser.Clean(User));

                Database.User.Single().Returns(observable);

                var result = UserAccessManager.CheckIfLoggedIn();

                result.Should().BeTrue();
                PrivateSharedStorageService.Received().SaveApiToken(Arg.Any <string>());
            }
        public async Task ClearsPrivateSharedStorage()
        {
            await interactor.Execute();

            PrivateSharedStorageService.Received().ClearAll();
        }
            public async Task SavesTheUserIdToPrivateSharedStorage()
            {
                await UserAccessManager.LoginWithGoogle();

                PrivateSharedStorageService.Received().SaveUserId(Arg.Any <long>());
            }
            public async Task SavesTheApiTokenToPrivateSharedStorage()
            {
                await UserAccessManager.LoginWithGoogle();

                PrivateSharedStorageService.Received().SaveApiToken(Arg.Any <string>());
            }
            public async Task SavesTheUserIdToPrivateSharedStorage()
            {
                await UserAccessManager.RefreshToken(Password);

                PrivateSharedStorageService.Received().SaveUserId(Arg.Any <long>());
            }
            public async Task SavesTheUserIdToPrivateSharedStorage()
            {
                await UserAccessManager.SignUp(Email, Password, TermsAccepted, CountryId, Timezone);

                PrivateSharedStorageService.Received().SaveUserId(Arg.Any <long>());
            }
Exemple #9
0
            public async Task SavesTheApiTokenToPrivateSharedStorage()
            {
                await LoginManager.RefreshToken(Password);

                PrivateSharedStorageService.Received().SaveApiToken(Arg.Any <string>());
            }
Exemple #10
0
            public async Task SavesTheApiTokenToPrivateSharedStorage()
            {
                await LoginManager.SignUp(Email, Password, TermsAccepted, CountryId);

                PrivateSharedStorageService.Received().SaveApiToken(Arg.Any <string>());
            }