add attribute for tracking preview usage in the codebase (#2128)

This commit is contained in:
Brendan Forster
2020-03-07 10:40:15 -04:00
committed by GitHub
parent 216e4e315a
commit 5de5258257
46 changed files with 384 additions and 171 deletions
@@ -66,7 +66,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository("fake", "repo");
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repos/fake/repo/comments"),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview");
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -77,7 +77,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository(1);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repositories/1/comments"),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview");
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -95,7 +95,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository("fake", "repo", options);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repos/fake/repo/comments"),
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview");
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -113,7 +113,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForRepository(1, options);
githubClient.Connection.Received(1).Get<List<CommitComment>>(Arg.Is<Uri>(uri => uri.ToString() == "repositories/1/comments"),
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview");
Arg.Is<Dictionary<string, string>>(dictionary => dictionary.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -147,7 +147,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit("fake", "repo", "sha");
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repos/fake/repo/commits/sha/comments", UriKind.Relative)),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview");
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -158,7 +158,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit(1, "sha");
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repositories/1/commits/sha/comments", UriKind.Relative)),
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview");
Args.EmptyDictionary, "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -176,7 +176,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit("fake", "repo", "sha", options);
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repos/fake/repo/commits/sha/comments", UriKind.Relative)),
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview");
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]
@@ -194,7 +194,7 @@ namespace Octokit.Tests.Reactive
client.GetAllForCommit(1, "sha", options);
githubClient.Connection.Received().Get<List<CommitComment>>(Arg.Is(new Uri("repositories/1/commits/sha/comments", UriKind.Relative)),
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview");
Arg.Is<IDictionary<string, string>>(d => d.Count == 2), "application/vnd.github.squirrel-girl-preview+json");
}
[Fact]