mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +00:00
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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user