Renaming Microsoft.AspNet.Security namespace

This commit is contained in:
Sebastien Ros 2014-05-05 16:13:54 -07:00
parent 28fee3470f
commit 6f16dabf08
3 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,7 @@ using System.Security.Claims;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.Mvc.Core; using Microsoft.AspNet.Mvc.Core;
using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.Security.Authorization; using Microsoft.AspNet.Security;
namespace Microsoft.AspNet.Mvc namespace Microsoft.AspNet.Mvc
{ {

View File

@ -24,7 +24,7 @@ using Microsoft.AspNet.Mvc.ModelBinding;
using Microsoft.AspNet.Mvc.Razor; using Microsoft.AspNet.Mvc.Razor;
using Microsoft.AspNet.Mvc.Razor.Compilation; using Microsoft.AspNet.Mvc.Razor.Compilation;
using Microsoft.AspNet.Mvc.Rendering; using Microsoft.AspNet.Mvc.Rendering;
using Microsoft.AspNet.Security.Authorization; using Microsoft.AspNet.Security;
namespace Microsoft.AspNet.Mvc namespace Microsoft.AspNet.Mvc
{ {

View File

@ -17,10 +17,11 @@
using System; using System;
using System.Linq; using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks; using System.Threading.Tasks;
using Microsoft.AspNet.DependencyInjection; using Microsoft.AspNet.DependencyInjection;
using Microsoft.AspNet.Mvc; using Microsoft.AspNet.Mvc;
using Microsoft.AspNet.Security.Authorization; using Microsoft.AspNet.Security;
using Moq; using Moq;
using Xunit; using Xunit;
@ -141,7 +142,7 @@ namespace Microsoft.AspNet.Mvc.Core.Test
bool authorizationServiceIsCalled = false; bool authorizationServiceIsCalled = false;
var authorizationService = new Mock<IAuthorizationService>(); var authorizationService = new Mock<IAuthorizationService>();
authorizationService authorizationService
.Setup(x => x.AuthorizeAsync(null, null)) .Setup(x => x.AuthorizeAsync(Enumerable.Empty<Claim>(), null, null))
.Returns(() => .Returns(() =>
{ {
authorizationServiceIsCalled = true; authorizationServiceIsCalled = true;