From 23ee95903efbd726e7a4354e470caf90c45b43d5 Mon Sep 17 00:00:00 2001 From: Amy Palamountain Date: Sat, 11 Jan 2014 10:34:27 +1300 Subject: [PATCH] :lipstick: renamed to GetContributors --- Octokit.Tests/Clients/StatisticsClientTests.cs | 6 +++--- Octokit/Clients/IStatisticsClient.cs | 2 +- Octokit/Clients/StatisticsClient.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Octokit.Tests/Clients/StatisticsClientTests.cs b/Octokit.Tests/Clients/StatisticsClientTests.cs index 1dae35c3..3ac79336 100644 --- a/Octokit.Tests/Clients/StatisticsClientTests.cs +++ b/Octokit.Tests/Clients/StatisticsClientTests.cs @@ -30,7 +30,7 @@ namespace Octokit.Tests.Clients client.Connection.Returns(connection); var statisticsClient = new StatisticsClient(client); - statisticsClient.Contributors("username","repositoryName"); + statisticsClient.GetContributors("username","repositoryName"); connection.Received().GetAsync>(expectedEndPoint); } @@ -39,14 +39,14 @@ namespace Octokit.Tests.Clients public async Task ThrowsIfGivenNullOwner() { var statisticsClient = new StatisticsClient(Substitute.For()); - await AssertEx.Throws(() => statisticsClient.Contributors(null,"repositoryName")); + await AssertEx.Throws(() => statisticsClient.GetContributors(null,"repositoryName")); } [Fact] public async Task ThrowsIfGivenNullRepositoryName() { var statisticsClient = new StatisticsClient(Substitute.For()); - await AssertEx.Throws(() => statisticsClient.Contributors("owner", null)); + await AssertEx.Throws(() => statisticsClient.GetContributors("owner", null)); } } } diff --git a/Octokit/Clients/IStatisticsClient.cs b/Octokit/Clients/IStatisticsClient.cs index 6e937d80..9e7ad461 100644 --- a/Octokit/Clients/IStatisticsClient.cs +++ b/Octokit/Clients/IStatisticsClient.cs @@ -11,6 +11,6 @@ namespace Octokit /// The owner of the repository /// The name of the repository /// A list of - Task> Contributors(string owner, string repositoryName); + Task> GetContributors(string owner, string repositoryName); } } \ No newline at end of file diff --git a/Octokit/Clients/StatisticsClient.cs b/Octokit/Clients/StatisticsClient.cs index 94068b3c..84d303d0 100644 --- a/Octokit/Clients/StatisticsClient.cs +++ b/Octokit/Clients/StatisticsClient.cs @@ -20,7 +20,7 @@ namespace Octokit /// The owner of the repository /// The name of the repository /// A list of - public Task> Contributors(string owner, string repositoryName) + public Task> GetContributors(string owner, string repositoryName) { Ensure.ArgumentNotNullOrEmptyString(owner, "owner"); Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");