diff --git a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs index e80ca018..3a3233ec 100644 --- a/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs +++ b/Octokit.Tests.Integration/Clients/RepositoriesClientTests.cs @@ -492,7 +492,7 @@ public class RepositoriesClientTests } } - public class TheGetAsyncMethod + public class TheGetMethod { [IntegrationTest] public async Task ReturnsSpecifiedRepository() diff --git a/Octokit.Tests/Clients/AuthorizationsClientTests.cs b/Octokit.Tests/Clients/AuthorizationsClientTests.cs index 6e190a81..68f45fe3 100644 --- a/Octokit.Tests/Clients/AuthorizationsClientTests.cs +++ b/Octokit.Tests/Clients/AuthorizationsClientTests.cs @@ -52,7 +52,7 @@ namespace Octokit.Tests.Clients } } - public class TheUpdateAsyncMethod + public class TheUpdateMethod { [Fact] public void SendsUpdateToCorrectUrl() @@ -67,7 +67,7 @@ namespace Octokit.Tests.Clients } } - public class TheCreateAsyncMethod + public class TheCreateMethod { [Fact] public void SendsCreateToCorrectUrl() @@ -82,7 +82,7 @@ namespace Octokit.Tests.Clients } } - public class TheDeleteAsyncMethod + public class TheDeleteMethod { [Fact] public void DeletesCorrectUrl() diff --git a/Octokit.Tests/Http/ConnectionTests.cs b/Octokit.Tests/Http/ConnectionTests.cs index 04797305..e61fb075 100644 --- a/Octokit.Tests/Http/ConnectionTests.cs +++ b/Octokit.Tests/Http/ConnectionTests.cs @@ -18,7 +18,7 @@ namespace Octokit.Tests.Http const string ExampleUrl = "http://example.com"; static readonly Uri ExampleUri = new Uri(ExampleUrl); - public class TheGetAsyncMethod + public class TheGetMethod { [Fact] public async Task SendsProperlyFormattedRequest() @@ -303,7 +303,7 @@ namespace Octokit.Tests.Http } } - public class ThePatchAsyncMethod + public class ThePatchMethod { [Fact] public async Task RunsConfiguredAppWithAppropriateEnv() @@ -318,7 +318,7 @@ namespace Octokit.Tests.Http httpClient, Substitute.For()); - await connection.PatchAsync(new Uri("endpoint", UriKind.Relative), new object()); + await connection.Patch(new Uri("endpoint", UriKind.Relative), new object()); httpClient.Received(1).Send(Arg.Is(req => req.BaseAddress == ExampleUri && @@ -341,13 +341,13 @@ namespace Octokit.Tests.Http httpClient, Substitute.For()); - await connection.PatchAsync(new Uri("endpoint", UriKind.Relative), new object(), "custom/accepts"); + await connection.Patch(new Uri("endpoint", UriKind.Relative), new object(), "custom/accepts"); httpClient.Received(1).Send(Arg.Is(req => req.Headers["Accept"] == "custom/accepts"), Args.CancellationToken); } } - public class ThePutAsyncMethod + public class ThePutMethod { [Fact] public async Task MakesPutRequestWithData() @@ -362,7 +362,7 @@ namespace Octokit.Tests.Http httpClient, Substitute.For()); - await connection.PutAsync(new Uri("endpoint", UriKind.Relative), new object()); + await connection.Put(new Uri("endpoint", UriKind.Relative), new object()); httpClient.Received(1).Send(Arg.Is(req => req.BaseAddress == ExampleUri && @@ -385,7 +385,7 @@ namespace Octokit.Tests.Http httpClient, Substitute.For()); - await connection.PutAsync(new Uri("endpoint", UriKind.Relative), new object(), "two-factor"); + await connection.Put(new Uri("endpoint", UriKind.Relative), new object(), "two-factor"); httpClient.Received(1).Send(Arg.Is(req => req.BaseAddress == ExampleUri && @@ -397,7 +397,7 @@ namespace Octokit.Tests.Http } } - public class ThePostAsyncMethod + public class ThePostMethod { [Fact] public async Task SendsProperlyFormattedPostRequest() @@ -475,7 +475,7 @@ namespace Octokit.Tests.Http } } - public class TheDeleteAsyncMethod + public class TheDeleteMethod { [Fact] public async Task SendsProperlyFormattedDeleteRequest() @@ -489,7 +489,7 @@ namespace Octokit.Tests.Http httpClient, Substitute.For()); - await connection.DeleteAsync(new Uri("endpoint", UriKind.Relative)); + await connection.Delete(new Uri("endpoint", UriKind.Relative)); httpClient.Received(1).Send(Arg.Is(req => req.BaseAddress == ExampleUri &&