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
@@ -87,7 +87,7 @@ namespace Octokit.Tests.Reactive
public void SetupWithNonReactiveClient()
{
var deploymentStatusClient = new DeploymentStatusClient(Substitute.For<IApiConnection>());
_githubClient.Deployment.Status.Returns(deploymentStatusClient);
_githubClient.Repository.Deployment.Status.Returns(deploymentStatusClient);
_client = new ObservableDeploymentStatusClient(_githubClient);
}
@@ -125,7 +125,7 @@ namespace Octokit.Tests.Reactive
var newStatus = new NewDeploymentStatus();
_client.Create("owner", "repo", 1, newStatus);
_githubClient.Deployment.Status.Received(1)
_githubClient.Repository.Deployment.Status.Received(1)
.Create(Arg.Is("owner"),
Arg.Is("repo"),
Arg.Is(1),