mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-01 10:25:36 +00:00
6565a07974
* Fixes ids for Releases, Collaborators, and Contributors * updates the interface for releases * update the obverable release client * updates ids from int to long based on GH database schema * converts a test condition to use the proper type * updates generated paging and observable classes
33 lines
847 B
C#
33 lines
847 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Octokit.Tests.Integration.Helpers
|
|
{
|
|
internal sealed class PublicKeyContext : IDisposable
|
|
{
|
|
internal PublicKeyContext(IConnection connection, PublicKey key)
|
|
{
|
|
_connection = connection;
|
|
Key = key;
|
|
KeyId = key.Id;
|
|
KeyTitle = key.Title;
|
|
KeyData = key.Key;
|
|
}
|
|
|
|
private readonly IConnection _connection;
|
|
internal long KeyId { get; private set; }
|
|
internal string KeyTitle { get; private set; }
|
|
internal string KeyData { get; private set; }
|
|
|
|
internal PublicKey Key { get; private set; }
|
|
|
|
public void Dispose()
|
|
{
|
|
Helper.DeleteKey(_connection, Key);
|
|
}
|
|
}
|
|
}
|