mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-09 04:56:29 +00:00
moved deployment client under Repository, updated errything related
This commit is contained in:
@@ -90,7 +90,7 @@ namespace Octokit.Tests.Reactive
|
||||
private void SetupWithNonReactiveClient()
|
||||
{
|
||||
var deploymentsClient = new DeploymentsClient(Substitute.For<IApiConnection>());
|
||||
_githubClient.Deployment.Returns(deploymentsClient);
|
||||
_githubClient.Repository.Deployment.Returns(deploymentsClient);
|
||||
_client = new ObservableDeploymentsClient(_githubClient);
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace Octokit.Tests.Reactive
|
||||
|
||||
var newDeployment = new NewDeployment();
|
||||
_client.Create("owner", "repo", newDeployment);
|
||||
_githubClient.Deployment.Received(1).Create(Arg.Is("owner"),
|
||||
_githubClient.Repository.Deployment.Received(1).Create(Arg.Is("owner"),
|
||||
Arg.Is("repo"),
|
||||
Arg.Is(newDeployment));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user