mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Make Response.StatusCode readonly
This commit is contained in:
@@ -16,10 +16,7 @@ namespace Octokit.Tests.Exceptions
|
||||
[Fact]
|
||||
public void SetsDefaultMessage()
|
||||
{
|
||||
var response = new Response
|
||||
{
|
||||
StatusCode = HttpStatusCode.Unauthorized
|
||||
};
|
||||
var response = new Response(HttpStatusCode.Unauthorized, null, new Dictionary<string, string>(), "application/json");
|
||||
|
||||
var exception = new TwoFactorRequiredException(response, TwoFactorType.Sms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user