mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
💄 renamed to GetContributors
This commit is contained in:
@@ -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<IList<Contributor>>(expectedEndPoint);
|
||||
}
|
||||
@@ -39,14 +39,14 @@ namespace Octokit.Tests.Clients
|
||||
public async Task ThrowsIfGivenNullOwner()
|
||||
{
|
||||
var statisticsClient = new StatisticsClient(Substitute.For<IApiConnection>());
|
||||
await AssertEx.Throws<ArgumentNullException>(() => statisticsClient.Contributors(null,"repositoryName"));
|
||||
await AssertEx.Throws<ArgumentNullException>(() => statisticsClient.GetContributors(null,"repositoryName"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ThrowsIfGivenNullRepositoryName()
|
||||
{
|
||||
var statisticsClient = new StatisticsClient(Substitute.For<IApiConnection>());
|
||||
await AssertEx.Throws<ArgumentNullException>(() => statisticsClient.Contributors("owner", null));
|
||||
await AssertEx.Throws<ArgumentNullException>(() => statisticsClient.GetContributors("owner", null));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,6 +11,6 @@ namespace Octokit
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <returns>A list of <see cref="Contributor"/></returns>
|
||||
Task<IEnumerable<Contributor>> Contributors(string owner, string repositoryName);
|
||||
Task<IEnumerable<Contributor>> GetContributors(string owner, string repositoryName);
|
||||
}
|
||||
}
|
||||
@@ -20,7 +20,7 @@ namespace Octokit
|
||||
/// <param name="owner">The owner of the repository</param>
|
||||
/// <param name="repositoryName">The name of the repository</param>
|
||||
/// <returns>A list of <see cref="Contributor"/></returns>
|
||||
public Task<IEnumerable<Contributor>> Contributors(string owner, string repositoryName)
|
||||
public Task<IEnumerable<Contributor>> GetContributors(string owner, string repositoryName)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
|
||||
Ensure.ArgumentNotNullOrEmptyString(repositoryName, "repositoryName");
|
||||
|
||||
Reference in New Issue
Block a user