Skip to content

Commit

Permalink
removed duplicate IGitHubClient.Tree property
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Jan 22, 2014
1 parent 7db3afa commit 2a814dd
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Octokit.Reactive/Clients/ObservableTreesClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public ObservableTreesClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");

_client = client.Tree;
_client = client.GitDatabase.Tree;
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions Octokit.Tests/Reactive/ObservableTreesClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void GetsFromClientIssueIssue()

client.Get("fake", "repo", "123456ABCD");

gitHubClient.Tree.Received().Get("fake", "repo", "123456ABCD");
gitHubClient.GitDatabase.Tree.Received().Get("fake", "repo", "123456ABCD");
}

[Fact]
Expand Down Expand Up @@ -48,7 +48,7 @@ public void CreatesFromClientIssueIssue()

client.Create("fake", "repo", newTree);

gitHubClient.Tree.Received().Create("fake", "repo", newTree);
gitHubClient.GitDatabase.Tree.Received().Create("fake", "repo", newTree);
}

[Fact]
Expand Down
2 changes: 0 additions & 2 deletions Octokit/GitHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ public GitHubClient(IConnection connection)
User = new UsersClient(apiConnection);
SshKey = new SshKeysClient(apiConnection);
GitDatabase = new GitDatabaseClient(apiConnection);
Tree = new TreesClient(apiConnection);
Search = new SearchClient(apiConnection);
}

Expand Down Expand Up @@ -141,7 +140,6 @@ public Uri BaseAddress
public IUsersClient User { get; private set; }
public INotificationsClient Notification { get; private set; }
public IGitDatabaseClient GitDatabase { get; private set; }
public ITreesClient Tree { get; private set; }
public ISearchClient Search { get; private set; }

static Uri FixUpBaseUri(Uri uri)
Expand Down
1 change: 0 additions & 1 deletion Octokit/IGitHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ public interface IGitHubClient
IUsersClient User { get; }
INotificationsClient Notification { get; }
IGitDatabaseClient GitDatabase { get; }
ITreesClient Tree { get; }
ISearchClient Search { get; }
}
}

0 comments on commit 2a814dd

Please sign in to comment.