mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-08 20:45:51 +00:00
Adds common properties to RepositoryContext
A lot of classes use the name and the owner of the repository, so for consistency I added those as properties of the Context
This commit is contained in:
@@ -11,8 +11,13 @@ namespace Octokit.Tests.Integration.Helpers
|
||||
internal RepositoryContext(Repository repo)
|
||||
{
|
||||
Repository = repo;
|
||||
RepositoryOwner = repo.Owner.Login;
|
||||
RepositoryName = repo.Name;
|
||||
}
|
||||
|
||||
internal string RepositoryOwner { get; private set; }
|
||||
internal string RepositoryName { get; private set; }
|
||||
|
||||
internal Repository Repository { get; private set; }
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in New Issue
Block a user