feat: Removing accept header previews (#2515)

This commit is contained in:
Chris Simpson
2022-08-01 15:37:23 +01:00
committed by GitHub
parent 840935a8d7
commit 2f7bd00dd6
138 changed files with 954 additions and 1659 deletions
@@ -32,7 +32,7 @@ namespace Octokit.Tests.Reactive
client.GetAll("org");
gitHubClient.Connection.Received(1).Get<List<User>>(
new Uri("orgs/org/members", UriKind.Relative), Args.EmptyDictionary, null);
new Uri("orgs/org/members", UriKind.Relative), Args.EmptyDictionary);
}
[Fact]
@@ -51,7 +51,7 @@ namespace Octokit.Tests.Reactive
client.GetAll("org", options);
gitHubClient.Connection.Received(1).Get<List<User>>(
new Uri("orgs/org/members", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
new Uri("orgs/org/members", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]
@@ -96,7 +96,7 @@ namespace Octokit.Tests.Reactive
orgMembersClient.GetAll("org", OrganizationMembersFilter.TwoFactorAuthenticationDisabled, options);
client.Connection.Received(1).Get<List<User>>(
new Uri("orgs/org/members?filter=2fa_disabled", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
new Uri("orgs/org/members?filter=2fa_disabled", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]
@@ -114,7 +114,7 @@ namespace Octokit.Tests.Reactive
orgMembersClient.GetAll("org", OrganizationMembersRole.Member, options);
client.Connection.Received().Get<List<User>>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members?role=member"), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
client.Connection.Received().Get<List<User>>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members?role=member"), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]
@@ -132,7 +132,7 @@ namespace Octokit.Tests.Reactive
orgMembersClient.GetAll("org", OrganizationMembersFilter.TwoFactorAuthenticationDisabled, OrganizationMembersRole.Member, options);
client.Connection.Received().Get<List<User>>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members?filter=2fa_disabled&role=member"), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
client.Connection.Received().Get<List<User>>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members?filter=2fa_disabled&role=member"), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
}
@@ -147,7 +147,7 @@ namespace Octokit.Tests.Reactive
client.GetAllPublic("org");
gitHubClient.Connection.Received(1).Get<List<User>>(
new Uri("orgs/org/public_members", UriKind.Relative), Args.EmptyDictionary, null);
new Uri("orgs/org/public_members", UriKind.Relative), Args.EmptyDictionary);
}
[Fact]
@@ -166,7 +166,7 @@ namespace Octokit.Tests.Reactive
client.GetAllPublic("org", options);
gitHubClient.Connection.Received(1).Get<List<User>>(
new Uri("orgs/org/public_members", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2), null);
new Uri("orgs/org/public_members", UriKind.Relative), Arg.Is<IDictionary<string, string>>(d => d.Count == 2));
}
[Fact]
@@ -399,8 +399,7 @@ namespace Octokit.Tests.Reactive
gitHubClient.Connection.Received().GetAndFlattenAllPages<OrganizationMembershipInvitation>(
Arg.Is<Uri>(u => u.ToString() == "orgs/org/invitations"),
Args.EmptyDictionary,
"application/vnd.github.korra-preview+json");
Args.EmptyDictionary);
}
[Fact]
@@ -419,8 +418,7 @@ namespace Octokit.Tests.Reactive
gitHubClient.Connection.Received().GetAndFlattenAllPages<OrganizationMembershipInvitation>(
Arg.Is<Uri>(u => u.ToString() == "orgs/org/invitations"),
Arg.Is<Dictionary<string, string>>(d => d.Count == 2),
"application/vnd.github.korra-preview+json");
Arg.Is<Dictionary<string, string>>(d => d.Count == 2));
}
[Fact]