Oops. Forgot to actually call the overload I added.

This commit is contained in:
Devesh Khandelwal
2016-03-15 15:27:19 +05:30
parent 829ba2c560
commit abc4eb9269
3 changed files with 8 additions and 3 deletions

View File

@@ -36,6 +36,7 @@ namespace Octokit.Reactive
/// </summary>
/// <param name="owner">The owner of the repository</param>
/// <param name="name">The name of the repository</param>
/// <param name="options">The options to change API's behaviour</param>
/// <returns></returns>
public IObservable<User> GetAllForRepository(string owner, string name, ApiOptions options)
{

View File

@@ -21,7 +21,11 @@ namespace Octokit.Tests.Clients
client.GetAllForRepository("fake", "repo");
connection.Received().GetAll<User>(Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/assignees"), null, AcceptHeaders.StableVersion, Args.ApiOptions);
connection.Received().GetAll<User>(
Arg.Is<Uri>(u => u.ToString() == "repos/fake/repo/assignees"),
null,
AcceptHeaders.StableVersion,
Args.ApiOptions);
}
[Fact]

View File

@@ -30,7 +30,7 @@ namespace Octokit
Ensure.ArgumentNotNullOrEmptyString(owner, "owner");
Ensure.ArgumentNotNullOrEmptyString(name, "name");
return ApiConnection.GetAll<User>(ApiUrls.Assignees(owner, name));
return GetAllForRepository(owner, name, ApiOptions.None);
}
/// <summary>
@@ -48,7 +48,7 @@ namespace Octokit
var endpoint = ApiUrls.Assignees(owner, name);
return ApiConnection.GetAll<User>(endpoint, null, options);
return ApiConnection.GetAll<User>(endpoint, null, AcceptHeaders.StableVersion, options);
}
/// <summary>