Files
Nick Floyd 6565a07974 [BREAKING CHANGES]: int to long Ids for PreReceiveHook, Deployment Environments, Repository, Org Team, Repo Invitations, Public Key, Project Cards, Organization Invitation, Migrations, GpgKey, Deployment, Authorizations, Accounts / Profiles, Codespace / Workspaces (#2941)
* 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
2024-06-26 10:57:30 -05:00

36 lines
876 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Octokit.Tests.Integration.Helpers
{
public class GpgKeyContext : IDisposable
{
internal GpgKeyContext(IConnection connection, GpgKey key)
{
_connection = connection;
Key = key;
GpgKeyId = key.Id;
KeyId = key.KeyId;
PublicKeyData = key.PublicKey;
}
private readonly IConnection _connection;
internal long GpgKeyId { get; set; }
internal string KeyId { get; set; }
internal string PublicKeyData { get; set; }
internal GpgKey Key { get; set; }
public void Dispose()
{
if (Key != null)
{
Helper.DeleteGpgKey(_connection, Key);
}
}
}
}