Make Response.StatusCode readonly

This commit is contained in:
Haacked
2015-01-01 23:53:25 -08:00
parent 89e8fdfeaf
commit 4653e798a7
16 changed files with 44 additions and 51 deletions
@@ -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);