mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 11:40:42 +00:00
RepositoryContext class and Extension methods
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Octokit.Tests.Integration.Helpers
|
||||
{
|
||||
internal sealed class RepositoryContext : IDisposable
|
||||
{
|
||||
internal RepositoryContext(Repository repo)
|
||||
{
|
||||
Repository = repo;
|
||||
}
|
||||
|
||||
internal Repository Repository { get; private set; }
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Helper.DeleteRepo(Repository);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user