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:
Lehonti Ramos
2023-08-11 18:53:51 +02:00
committed by GitHub
parent 6ab43b2d41
commit d46527d143
29 changed files with 166 additions and 166 deletions
@@ -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; }