removed duplicate IGitHubClient.Tree property

This commit is contained in:
Brendan Forster
2014-01-22 11:36:41 -08:00
parent 7db3afa072
commit 2a814dd981
4 changed files with 3 additions and 6 deletions
@@ -12,7 +12,7 @@ namespace Octokit.Reactive
{
Ensure.ArgumentNotNull(client, "client");
_client = client.Tree;
_client = client.GitDatabase.Tree;
}
/// <summary>
@@ -20,7 +20,7 @@ namespace Octokit.Tests
client.Get("fake", "repo", "123456ABCD");
gitHubClient.Tree.Received().Get("fake", "repo", "123456ABCD");
gitHubClient.GitDatabase.Tree.Received().Get("fake", "repo", "123456ABCD");
}
[Fact]
@@ -48,7 +48,7 @@ namespace Octokit.Tests
client.Create("fake", "repo", newTree);
gitHubClient.Tree.Received().Create("fake", "repo", newTree);
gitHubClient.GitDatabase.Tree.Received().Create("fake", "repo", newTree);
}
[Fact]
-2
View File
@@ -91,7 +91,6 @@ namespace Octokit
User = new UsersClient(apiConnection);
SshKey = new SshKeysClient(apiConnection);
GitDatabase = new GitDatabaseClient(apiConnection);
Tree = new TreesClient(apiConnection);
Search = new SearchClient(apiConnection);
}
@@ -141,7 +140,6 @@ namespace Octokit
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)
-1
View File
@@ -21,7 +21,6 @@ namespace Octokit
IUsersClient User { get; }
INotificationsClient Notification { get; }
IGitDatabaseClient GitDatabase { get; }
ITreesClient Tree { get; }
ISearchClient Search { get; }
}
}