mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Added readonly to fields that are never modified (#2759)
Co-authored-by: Lehonti Ramos <john@doe> Co-authored-by: Keegan Campbell <me@kfcampbell.com>
This commit is contained in:
@@ -17,7 +17,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
UserEmail = user.Email;
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
internal int UserId { get; private set; }
|
||||
internal string UserLogin { get; private set; }
|
||||
internal string UserEmail { get; private set; }
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
PublicKeyData = key.PublicKey;
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
internal int GpgKeyId { get; set; }
|
||||
internal string KeyId { get; set; }
|
||||
internal string PublicKeyData { get; set; }
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
EnterpriseHelper.SetMaintenanceMode(_connection, enabled);
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
KeyData = key.Key;
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
internal int KeyId { get; private set; }
|
||||
internal string KeyTitle { get; private set; }
|
||||
internal string KeyData { get; private set; }
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
RepositoryDefaultBranch = repo.DefaultBranch;
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
internal long RepositoryId { get; private set; }
|
||||
internal string RepositoryOwner { get; private set; }
|
||||
internal string RepositoryName { get; private set; }
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
Invitations = new List<string>();
|
||||
}
|
||||
|
||||
private IConnection _connection;
|
||||
private readonly IConnection _connection;
|
||||
internal int TeamId { get; private set; }
|
||||
internal string TeamName { get; private set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user