mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-23 23:55:13 +00:00
Oops. Forgot to actually call the overload I added.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user