mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
Added IReferenceClient and failing test
This commit is contained in:
@@ -28,5 +28,13 @@ public class GitDatabaseClientTests
|
||||
var gitDatabaseClient = new GitDatabaseClient(apiConnection);
|
||||
Assert.NotNull(gitDatabaseClient.Commit);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void SetReferencesClient()
|
||||
{
|
||||
var apiConnection = Substitute.For<IApiConnection>();
|
||||
var gitDatabaseClient = new GitDatabaseClient(apiConnection);
|
||||
Assert.NotNull(gitDatabaseClient.Reference);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
|
||||
public ITagsClient Tag { get; set; }
|
||||
public ICommitsClient Commit { get; set; }
|
||||
public IReferencesClient Reference { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -7,5 +7,6 @@
|
||||
{
|
||||
ITagsClient Tag { get; set; }
|
||||
ICommitsClient Commit { get; set; }
|
||||
IReferencesClient Reference { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
public interface IReferencesClient
|
||||
{
|
||||
Task<GitReference> Get(string owner, string repo, string reference);
|
||||
}
|
||||
}
|
||||
@@ -58,6 +58,7 @@
|
||||
<Compile Include="Clients\IIssueCommentsClient.cs" />
|
||||
<Compile Include="Clients\IIssuesEventsClient.cs" />
|
||||
<Compile Include="Clients\IOrganizationMembersClient.cs" />
|
||||
<Compile Include="Clients\IReferencesClient.cs" />
|
||||
<Compile Include="Clients\IssueCommentsClient.cs" />
|
||||
<Compile Include="Clients\IssuesClient.cs" />
|
||||
<Compile Include="Clients\IssuesEventsClient.cs" />
|
||||
|
||||
@@ -76,6 +76,7 @@
|
||||
<Compile Include="Clients\INotificationsClient.cs" />
|
||||
<Compile Include="Clients\IOrganizationMembersClient.cs" />
|
||||
<Compile Include="Clients\IOrganizationsClient.cs" />
|
||||
<Compile Include="Clients\IReferencesClient.cs" />
|
||||
<Compile Include="Clients\IReleasesClient.cs" />
|
||||
<Compile Include="Clients\IRepositoriesClient.cs" />
|
||||
<Compile Include="Clients\ISshKeysClient.cs" />
|
||||
|
||||
@@ -55,6 +55,7 @@
|
||||
<Compile Include="Clients\ActivitiesClient.cs" />
|
||||
<Compile Include="Clients\GistsClient.cs" />
|
||||
<Compile Include="Clients\IGistsClient.cs" />
|
||||
<Compile Include="Clients\IReferencesClient.cs" />
|
||||
<Compile Include="Models\Response\BlobReference.cs" />
|
||||
<Compile Include="Clients\IBlobsClient.cs" />
|
||||
<Compile Include="Models\Request\NewBlob.cs" />
|
||||
|
||||
Reference in New Issue
Block a user