Пример #1
0
            public override void Because()
            {
                User          = Username;
                RepoName      = "NeedARepoYouCanCreateIssuesIn";
                RepoOwnerName = "Whatever";

                Github   = Github.WithAuthentication(Authenticator());
                Response = Github.CreateIssue <Issue>(RepoOwnerName, RepoName, Title, Body, User, Labels);
            }
Пример #2
0
            public override void Because()
            {
                User          = Username;
                RepoName      = "Whatever";
                RepoOwnerName = "Whatever";

                Github        = Github.WithAuthentication(Authenticator());
                IssueToUpdate = Github.CreateIssue <Issue>(RepoOwnerName, RepoName, "Isssue To Update", "Text to Update", User).Data;

                Response = Github.EditIssue <Issue>(RepoOwnerName, RepoName, IssueToUpdate.Number);
            }
Пример #3
0
 public override void Because()
 {
     User     = Username;
     Github   = Github.WithAuthentication(Authenticator());
     Response = Github.GetIssues <List <Issue> >();
 }
Пример #4
0
 public override void Context()
 {
     base.Context();
     Github = Github.WithAuthentication(Authenticator());
 }