React to HttpAbstractions namespace changes

- aspnet/HttpAbstractions#549 and aspnet/HttpAbstractions#592
- clean up `using`s
This commit is contained in:
Doug Bunting 2016-03-29 08:54:37 -07:00
parent 2029510999
commit 5a3ea74ffa
3 changed files with 3 additions and 5 deletions

View File

@ -7,7 +7,6 @@ using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder; using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.AspNetCore.TestHost; using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
using Moq; using Moq;

View File

@ -3,7 +3,6 @@
using System; using System;
using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Internal;
using Xunit; using Xunit;
namespace Microsoft.AspNetCore.Cors.Infrastructure namespace Microsoft.AspNetCore.Cors.Infrastructure

View File

@ -2,7 +2,7 @@
// 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.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNetCore.Http.Internal; using Microsoft.AspNetCore.Http;
using Xunit; using Xunit;
namespace Microsoft.AspNetCore.Cors.Infrastructure namespace Microsoft.AspNetCore.Cors.Infrastructure
@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Cors.Infrastructure
}; };
var policyProvider = new DefaultCorsPolicyProvider(corsOptions); var policyProvider = new DefaultCorsPolicyProvider(corsOptions);
// Act // Act
var actualPolicy = await policyProvider.GetPolicyAsync(new DefaultHttpContext(), policyName: null); var actualPolicy = await policyProvider.GetPolicyAsync(new DefaultHttpContext(), policyName: null);
// Assert // Assert
@ -46,7 +46,7 @@ namespace Microsoft.AspNetCore.Cors.Infrastructure
}; };
var policyProvider = new DefaultCorsPolicyProvider(corsOptions); var policyProvider = new DefaultCorsPolicyProvider(corsOptions);
// Act // Act
var actualPolicy = await policyProvider.GetPolicyAsync(new DefaultHttpContext(), policyName); var actualPolicy = await policyProvider.GetPolicyAsync(new DefaultHttpContext(), policyName);
// Assert // Assert