New unit tests have been added to check AuthorizationsClient implementation.

This commit is contained in:
aedampir@gmail.com
2016-03-17 15:37:01 +07:00
parent 5b166ebc42
commit fb8acd3d1a
@@ -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