Create RepositoryBranchesClient (#1437)

* Tidy up location of existing EditBranch tests

* Create RepositoryBranchesClient and move the GetBranch GetAllBranches and EditBranch methods to it, obsoleting the old ones

* Add tests for the new RepositoryBranchesClient (keeping old tests for RepositoriesClient around for now)

* Disable obsolete warning on reactive client temporarily

* Create observable repository branches client and move GetBranch, GetAllBranches, EditBranch methods to it, obsoleting the old ones

* Add tests for observable repository branches client, leave old tests in place for now

* Fix projects...

* Fix whitespace
This commit is contained in:
Ryan Gribble
2016-08-08 22:00:37 +10:00
committed by GitHub
parent 23d9310133
commit ef0da2f84d
26 changed files with 1424 additions and 173 deletions
@@ -848,7 +848,7 @@ namespace Octokit.Tests.Reactive
client.GetBranch("owner", "repo", "branch");
github.Repository.Received(1).GetBranch("owner", "repo", "branch");
github.Repository.Branch.Received(1).Get("owner", "repo", "branch");
}
[Fact]
@@ -859,7 +859,7 @@ namespace Octokit.Tests.Reactive
client.GetBranch(1, "branch");
github.Repository.Received(1).GetBranch(1, "branch");
github.Repository.Branch.Received(1).Get(1, "branch");
}
[Fact]
@@ -935,7 +935,7 @@ namespace Octokit.Tests.Reactive
client.EditBranch("owner", "repo", "branch", update);
github.Repository.Received(1).EditBranch("owner", "repo", "branch", update);
github.Repository.Branch.Received(1).Edit("owner", "repo", "branch", update);
}
[Fact]
@@ -947,7 +947,7 @@ namespace Octokit.Tests.Reactive
client.EditBranch(1, "branch", update);
github.Repository.Received(1).EditBranch(1, "branch", update);
github.Repository.Branch.Received(1).Edit(1, "branch", update);
}
[Fact]