public SettingsViewModel(
            IGitHubOAuthAuthorizer authorizer,
            IGitHubClient client,
            ISettingsService settingsService,
            ApplicationSettings settings)
        {
            this.authorizer = authorizer;
            this.client = client;
            this.settingsService = settingsService;
            this.settings = settings;

            User = new User
            {
                Name = settings.UserName,
            };
        }
 private void MapUser(NGitHub.Models.User obj)
 {
     User = new User
     {
         Name = obj.Name,
         Icon = obj.AvatarUrl
     };
 }
 public void Clear()
 {
     User = null;
 }
 private void MapUser(NGitHub.Models.User obj)
 {
     settings.UserName = obj.Login;
     settingsService.Save();
     User = new User
     {
         Name = obj.Login,
     };
 }