Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiftkey committed Feb 25, 2020
1 parent bf0c1cc commit fdbe099
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Octokit.Tests/Clients/MiscellaneousClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,12 @@ public async Task RequestsTheLicensesEndpoint()
{
IReadOnlyList<LicenseMetadata> response = new ReadOnlyCollection<LicenseMetadata>(new List<LicenseMetadata>()
{
new LicenseMetadata("foo1", "node-id-1", "foo2", "http://example.com/foo1", "something", true),
new LicenseMetadata("bar1", "node-id-1", "bar2", "http://example.com/bar1", "something else", false )
new LicenseMetadata("foo1", "node-id-1", "foo2", "something", "http://example.com/foo1", true),
new LicenseMetadata("bar1", "node-id-1", "bar2", "something else", "http://example.com/bar1", false)
});

var connection = Substitute.For<IApiConnection>();
connection.GetAll<LicenseMetadata>(Args.Uri, null, AcceptHeaders.LicensesApiPreview, Args.ApiOptions)
connection.GetAll<LicenseMetadata>(Arg.Is<Uri>(u => u.ToString() == "licenses"), null, "application/vnd.github.drax-preview+json", Args.ApiOptions)
.Returns(Task.FromResult(response));
var client = new MiscellaneousClient(connection);

Expand Down

0 comments on commit fdbe099

Please sign in to comment.