mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 20:13:40 +00:00
27 lines
575 B
C#
27 lines
575 B
C#
using System.Net.Http.Headers;
|
|
using System.Threading.Tasks;
|
|
using Octokit;
|
|
using Octokit.Tests.Integration;
|
|
using Xunit;
|
|
|
|
public class GistsClientTests
|
|
{
|
|
readonly IGistsClient _fixture;
|
|
|
|
public GistsClientTests()
|
|
{
|
|
var client = new GitHubClient(new ProductHeaderValue("OctokitTests"))
|
|
{
|
|
Credentials = Helper.Credentials
|
|
};
|
|
|
|
_fixture = client.Gist;
|
|
}
|
|
|
|
[IntegrationTest]
|
|
public async Task CanGetGist()
|
|
{
|
|
var retrieved = await _fixture.Get("6305249");
|
|
Assert.NotNull(retrieved);
|
|
}
|
|
} |