mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 04:40:54 +00:00
removed duplicate IGitHubClient.Tree property
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -21,7 +21,6 @@ namespace Octokit
|
||||
IUsersClient User { get; }
|
||||
INotificationsClient Notification { get; }
|
||||
IGitDatabaseClient GitDatabase { get; }
|
||||
ITreesClient Tree { get; }
|
||||
ISearchClient Search { get; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user