예제 #1
0
 public void LogOut()
 {
     _statusProvider.Stop();
     _statusUpdater.Stop();
     _sessionProvider.ClearSession();
     State = NestViewModelState.LoggingIn;
 }
예제 #2
0
 private void HandleLoginException(WebServiceError error)
 {
     IsLoggedIn = false;
     // Missing test coverage. Set to false before true so UI updates.
     // How to test this? Or refactor out so not needed?
     IsLoggingIn = false;
     _sessionProvider.ClearSession();
     CurrentError = error;
     IsLoggingIn  = true;
 }