mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
New unit tests have been added to check AuthorizationsClient implementation.
This commit is contained in:
@@ -37,6 +37,19 @@ namespace Octokit.Tests.Clients
|
||||
Arg.Is<Uri>(u => u.ToString() == "authorizations"),
|
||||
Args.ApiOptions);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void GetsAListOfAuthorizationsWithApiOptions()
|
||||
{
|
||||
var client = Substitute.For<IApiConnection>();
|
||||
var authEndpoint = new AuthorizationsClient(client);
|
||||
|
||||
authEndpoint.GetAll(ApiOptions.None);
|
||||
|
||||
client.Received().GetAll<Authorization>(
|
||||
Arg.Is<Uri>(u => u.ToString() == "authorizations"),
|
||||
Args.ApiOptions);
|
||||
}
|
||||
}
|
||||
|
||||
public class TheGetMethod
|
||||
|
||||
Reference in New Issue
Block a user