mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 12:03:19 +00:00
Added second integration test for DeploymentStatuses..
and cleaned up Integration/DeploymentClientTests.cs some.
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
using Octokit;
|
||||
using Octokit.Tests.Integration;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Xunit;
|
||||
|
||||
|
||||
public class DeploymentsClientTests : IDisposable
|
||||
{
|
||||
IGitHubClient _gitHubClient;
|
||||
@@ -71,7 +67,7 @@ public class DeploymentsClientTests : IDisposable
|
||||
public async Task CanGetDeployments()
|
||||
{
|
||||
var newDeployment = new NewDeployment { Ref = _commit.Sha };
|
||||
var deployment = await _deploymentsClient.Create(_repositoryOwner, _repository.Name, newDeployment);
|
||||
await _deploymentsClient.Create(_repositoryOwner, _repository.Name, newDeployment);
|
||||
|
||||
var deployments = await _deploymentsClient.GetAll(_repositoryOwner, _repository.Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user