Skip to content

Commit

Permalink
Merge pull request #305 from octokit/blobs-plz-leave
Browse files Browse the repository at this point in the history
Deprecate IGitHubClient.Blob
  • Loading branch information
shiftkey committed Jan 14, 2014
2 parents 7890f70 + 9977061 commit 364db53
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/ObservableBlobClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public ObservableBlobClient(IGitHubClient client)
{
Ensure.ArgumentNotNull(client, "client");

_client = client.Blob;
_client = client.GitDatabase.Blob;
}

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

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

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

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

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

gitHubClient.Blob.Received().Create("fake", "repo", newBlob);
gitHubClient.GitDatabase.Blob.Received().Create("fake", "repo", newBlob);
}

[Fact]
Expand Down
2 changes: 0 additions & 2 deletions Octokit/GitHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public GitHubClient(IConnection connection)
var apiConnection = new ApiConnection(connection);
Authorization = new AuthorizationsClient(apiConnection);
Activity = new ActivitiesClient(apiConnection);
Blob = new BlobsClient(apiConnection);
Issue = new IssuesClient(apiConnection);
Miscellaneous = new MiscellaneousClient(connection);
Notification = new NotificationsClient(apiConnection);
Expand Down Expand Up @@ -132,7 +131,6 @@ public Uri BaseAddress

public IAuthorizationsClient Authorization { get; private set; }
public IActivitiesClient Activity { get; private set; }
public IBlobsClient Blob { get; private set; }
public IIssuesClient Issue { get; private set; }
public IMiscellaneousClient Miscellaneous { get; private set; }
public IOrganizationsClient Organization { get; private set; }
Expand Down
1 change: 0 additions & 1 deletion Octokit/IGitHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public interface IGitHubClient

IAuthorizationsClient Authorization { get; }
IActivitiesClient Activity { get; }
IBlobsClient Blob { get; }
IIssuesClient Issue { get; }
IMiscellaneousClient Miscellaneous { get; }
IOrganizationsClient Organization { get; }
Expand Down

0 comments on commit 364db53

Please sign in to comment.