Fix rebase issue in tests.

This commit is contained in:
Chris Ross 2014-07-08 09:42:11 -07:00
parent 578518d5c4
commit bd872c5fb0
2 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,9 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Text; using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Builder.Extensions;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore; using Microsoft.AspNet.PipelineCore;
using Xunit; using Xunit;
@ -81,6 +80,7 @@ namespace Microsoft.AspNet.Http.Extensions
private HttpContext CreateRequest() private HttpContext CreateRequest()
{ {
HttpContext context = new DefaultHttpContext(); HttpContext context = new DefaultHttpContext();
context.Response.Body = new MemoryStream();
return context; return context;
} }
} }

View File

@ -1,9 +1,8 @@
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.IO;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Builder.Extensions;
using Microsoft.AspNet.HttpFeature;
using Microsoft.AspNet.PipelineCore; using Microsoft.AspNet.PipelineCore;
using Xunit; using Xunit;
@ -33,6 +32,7 @@ namespace Microsoft.AspNet.Http
private HttpContext CreateRequest() private HttpContext CreateRequest()
{ {
HttpContext context = new DefaultHttpContext(); HttpContext context = new DefaultHttpContext();
context.Response.Body = new MemoryStream();
return context; return context;
} }
} }