private void InitGithub() { _githubAdapter = new GitHubAdapter(); _githubAdapter.RepoUser = "******"; _githubAdapter.User = Properties.Settings.Default.User; _githubAdapter.Password = Properties.Settings.Default.Password; _githubAdapter.LogUser(); GitHubIssue gitHubIssue = new GitHubIssue(this); gitHubIssue.Repositories = new List <string>() { "Booking", "Financial", "People", "Infra" }; _viewGithubIssue = new PanelCustom(gitHubIssue); _viewGithubIssue.Name = "CurrentView"; GitHubUserDetail githubUserDetail = new GitHubUserDetail(this); _viewGithubUserDetail = new PanelCustom(githubUserDetail); _viewGithubUserDetail.Name = "CurrentView"; GithubManage githubManage = new GithubManage(this); _viewGithubManage = new PanelCustom(githubManage); _viewGithubManage.Name = "CurrentView"; }
private void Log() { if (_gha != null) { _gha.ConnectionFailled += _gha_ConnectionFailled; _gha.LogUser(textBoxLogin.Text, maskedTextBoxPWD.Text); _gha.ConnectionFailled -= _gha_ConnectionFailled; } }
public void Test_github() { try { GitHubAdapter github = new GitHubAdapter(); github.LogUser("", "", ""); github.LogOff(); Assert.IsTrue(true); } catch (System.Exception exp) { Assert.Fail(exp.Message); } }