💄 renamed to GetContributors

This commit is contained in:
Amy Palamountain
2014-01-11 10:34:27 +13:00
parent 29461db857
commit 23ee95903e
3 changed files with 5 additions and 5 deletions

View File

@@ -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));
}
}
}