mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
Refactoring for consistency.
This commit is contained in:
@@ -8,6 +8,6 @@
|
||||
/// <remarks>
|
||||
/// See the <a href="https://developer.github.com/v3/migration/migrations/">Enterprise License API documentation</a> for more information.
|
||||
/// </remarks>
|
||||
IObservableMigrationsClient Migration { get; }
|
||||
IObservableMigrationsClient Migrations { get; }
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@
|
||||
{
|
||||
Ensure.ArgumentNotNull(client, "client");
|
||||
|
||||
Migration = new ObservableMigrationsClient(client);
|
||||
Migrations = new ObservableMigrationsClient(client);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -15,6 +15,6 @@
|
||||
/// <remarks>
|
||||
/// https://developer.github.com/v3/migration/#enterprise-migrations
|
||||
/// </remarks>
|
||||
public IObservableMigrationsClient Migration { get; private set; }
|
||||
public IObservableMigrationsClient Migrations { get; private set; }
|
||||
}
|
||||
}
|
||||
@@ -62,7 +62,7 @@ namespace Octokit.Reactive
|
||||
/// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
|
||||
/// </remarks>
|
||||
/// <param name="org">The organization which is migrating.</param>
|
||||
/// <param name="id">Migration ID of the organization.</param>
|
||||
/// <param name="id">Migrations ID of the organization.</param>
|
||||
/// <returns>A <see cref="Migration"/> object representing the state of migration.</returns>
|
||||
public IObservable<Migration> Get(string org, int id)
|
||||
{
|
||||
|
||||
@@ -8,11 +8,11 @@ using Xunit;
|
||||
|
||||
public class MigrationsClientTests
|
||||
{
|
||||
public class TheStartNewMethod
|
||||
public class TheStartMethod
|
||||
{
|
||||
readonly IGitHubClient _gitHub;
|
||||
|
||||
public TheStartNewMethod()
|
||||
public TheStartMethod()
|
||||
{
|
||||
_gitHub = Helper.GetAuthenticatedClient();
|
||||
|
||||
@@ -111,7 +111,7 @@ public class MigrationsClientTests
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task DeletesArchive()
|
||||
public async Task CanDeleteArchive()
|
||||
{
|
||||
var organization = Environment.GetEnvironmentVariable("OCTOKIT_GITHUBORGANIZATION");
|
||||
var repos = (await _gitHub.Repository.GetAllForOrg(organization));
|
||||
@@ -133,7 +133,7 @@ public class MigrationsClientTests
|
||||
}
|
||||
|
||||
[IntegrationTest]
|
||||
public async Task UnlocksRepository()
|
||||
public async Task CanUnlockRepository()
|
||||
{
|
||||
var organization = Environment.GetEnvironmentVariable("OCTOKIT_GITHUBORGANIZATION");
|
||||
var repos = (await _gitHub.Repository.GetAllForOrg(organization));
|
||||
|
||||
@@ -120,7 +120,6 @@
|
||||
<Compile Include="Http\RequestBody.cs" />
|
||||
<Compile Include="Models\Request\BranchUpdate.cs" />
|
||||
<Compile Include="Models\Request\ApiOptions.cs" />
|
||||
<Compile Include="Models\Request\Enterprise\StartMigrationRequest.cs" />
|
||||
<Compile Include="Models\Request\NewImpersonationToken.cs" />
|
||||
<Compile Include="Models\Request\Enterprise\NewLdapMapping.cs" />
|
||||
<Compile Include="Models\Request\GistFileUpdate.cs" />
|
||||
@@ -144,6 +143,7 @@
|
||||
<Compile Include="Models\Request\NewRelease.cs" />
|
||||
<Compile Include="Models\Request\NotificationsRequest.cs" />
|
||||
<Compile Include="Models\Request\CommitRequest.cs" />
|
||||
<Compile Include="Models\Request\StartMigrationRequest.cs" />
|
||||
<Compile Include="Models\Request\UserRename.cs" />
|
||||
<Compile Include="Models\Response\ActivityPayloads\ActivityPayload.cs" />
|
||||
<Compile Include="Models\Response\ActivityPayloads\CommitCommentPayload.cs" />
|
||||
@@ -168,7 +168,6 @@
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsPulls.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsRepos.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\LdapSyncResponse.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\Migration.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\SearchIndexingResponse.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\LicenseInfo.cs" />
|
||||
<Compile Include="Models\Response\Enterprise\AdminStatsUsers.cs" />
|
||||
@@ -180,6 +179,7 @@
|
||||
<Compile Include="Models\Response\ApplicationAuthorization.cs" />
|
||||
<Compile Include="Models\Response\GitHubCommitFile.cs" />
|
||||
<Compile Include="Models\Response\Meta.cs" />
|
||||
<Compile Include="Models\Response\Migration.cs" />
|
||||
<Compile Include="Models\Response\MiscellaneousRateLimit.cs" />
|
||||
<Compile Include="Models\Response\Page.cs" />
|
||||
<Compile Include="Models\Response\PagesBuild.cs" />
|
||||
|
||||
Reference in New Issue
Block a user