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:
William Barbosa
2015-09-27 00:38:52 -03:00
parent 42e480c2c0
commit 847cd1b2c8
11 changed files with 175 additions and 207 deletions
@@ -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()