mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-04 19:26:51 +00:00
IApiResponse no longer inherits IResponse
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Octokit.Tests.Exceptions
|
||||
[Fact]
|
||||
public void CreatesGitHubErrorFromJsonResponse()
|
||||
{
|
||||
var response = new ApiResponse<object>
|
||||
var response = new Response
|
||||
{
|
||||
Body = @"{""errors"":[{""code"":""custom"",""field"":""key"",""message"":""key is " +
|
||||
@"already in use"",""resource"":""PublicKey""}],""message"":""Validation Failed""}",
|
||||
@@ -30,7 +30,7 @@ namespace Octokit.Tests.Exceptions
|
||||
[Fact]
|
||||
public void ProvidesDefaultMessage()
|
||||
{
|
||||
var response = new ApiResponse<object>
|
||||
var response = new Response
|
||||
{
|
||||
StatusCode = (HttpStatusCode)422
|
||||
};
|
||||
@@ -44,7 +44,7 @@ namespace Octokit.Tests.Exceptions
|
||||
[Fact]
|
||||
public void CanPopulateObjectFromSerializedData()
|
||||
{
|
||||
var response = new ApiResponse<object>
|
||||
var response = new Response
|
||||
{
|
||||
Body = @"{""errors"":[{""code"":""custom"",""field"":""key"",""message"":""key is " +
|
||||
@"already in use"",""resource"":""PublicKey""}],""message"":""Validation Failed""}",
|
||||
|
||||
Reference in New Issue
Block a user