Added second integration test for DeploymentStatuses..

and cleaned up Integration/DeploymentClientTests.cs some.
This commit is contained in:
Peter MacNaughton
2014-01-11 00:29:20 -07:00
parent c7b681f3f9
commit 4e2d7d1a66
2 changed files with 15 additions and 5 deletions
@@ -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);