moved deployment client under Repository, updated errything related

This commit is contained in:
Brendan Forster
2014-02-18 21:34:28 +11:00
parent f6bb34e9c7
commit 5f124ee2e2
11 changed files with 43 additions and 9 deletions
@@ -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));
}