mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 03:16:11 +00:00
aaaand format the code
This commit is contained in:
@@ -101,7 +101,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task RequestsCorrectValueForStatusCode(HttpStatusCode status, bool expected)
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(status , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(status, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Get<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members/username"),
|
||||
null, null).Returns(response);
|
||||
@@ -118,7 +118,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task ThrowsExceptionForInvalidStatusCode()
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Get<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/members/username"),
|
||||
null, null).Returns(response);
|
||||
@@ -149,7 +149,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task RequestsCorrectValueForStatusCode(HttpStatusCode status, bool expected)
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(status , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(status, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Get<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/public_members/username"),
|
||||
null, null).Returns(response);
|
||||
@@ -166,7 +166,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task ThrowsExceptionForInvalidStatusCode()
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Get<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/public_members/username"),
|
||||
null, null).Returns(response);
|
||||
@@ -221,7 +221,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task RequestsCorrectValueForStatusCode(HttpStatusCode status, bool expected)
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(status , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(status, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Put<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/public_members/username"),
|
||||
Args.Object).Returns(response);
|
||||
@@ -238,7 +238,7 @@ namespace Octokit.Tests.Clients
|
||||
public async Task ThrowsExceptionForInvalidStatusCode()
|
||||
{
|
||||
var response = Task.Factory.StartNew<IApiResponse<object>>(() =>
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict , null, new Dictionary<string, string>(), "application/json")));
|
||||
new ApiResponse<object>(new Response(HttpStatusCode.Conflict, null, new Dictionary<string, string>(), "application/json")));
|
||||
var connection = Substitute.For<IConnection>();
|
||||
connection.Put<object>(Arg.Is<Uri>(u => u.ToString() == "orgs/org/public_members/username"),
|
||||
new { }).Returns(response);
|
||||
@@ -271,7 +271,7 @@ namespace Octokit.Tests.Clients
|
||||
|
||||
client.Conceal("org", "username");
|
||||
|
||||
connection.Received().Delete(Arg.Is<Uri>(u=>u.ToString() == "orgs/org/public_members/username"));
|
||||
connection.Received().Delete(Arg.Is<Uri>(u => u.ToString() == "orgs/org/public_members/username"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user