예제 #1
0
        public void Delete_BranchAsync_NormalCase()
        {
            var InputOwner  = "foo";
            var InputRepo   = "bar";
            var InputBranch = "baz";
            var ExpectedURL = $"https://api.github.com/repos/{InputOwner}/{InputRepo}/git/refs/heads/{InputBranch}";
            var fixture     = new GitHubFixture();

            fixture.SetUpDeleteAsync(ExpectedURL);
            var repository = new GitHubRepository(fixture.GitHubContext);
            var result     = repository.DeleteBranchAsync(InputOwner, InputRepo, InputBranch);

            fixture.VerifyDeleteAsync(ExpectedURL);
        }