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
+1 -1
View File
@@ -89,7 +89,7 @@ namespace Octokit.Tests.Http
public async Task ThrowsAuthorizationExceptionExceptionForUnauthorizedResponse()
{
var httpClient = Substitute.For<IHttpClient>();
IResponse response = new Response { StatusCode = HttpStatusCode.Unauthorized };
IResponse response = new Response(HttpStatusCode.Unauthorized, null, new Dictionary<string, string>(), "application/json");
httpClient.Send(Args.Request, Args.CancellationToken).Returns(Task.FromResult(response));
var connection = new Connection(new ProductHeaderValue("OctokitTests"),
_exampleUri,