Renaming Microsoft.AspNet.Security namespace
This commit is contained in:
parent
28fee3470f
commit
6f16dabf08
|
|
@ -22,7 +22,7 @@ using System.Security.Claims;
|
|||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Mvc.Core;
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using Microsoft.AspNet.Security.Authorization;
|
||||
using Microsoft.AspNet.Security;
|
||||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ using Microsoft.AspNet.Mvc.ModelBinding;
|
|||
using Microsoft.AspNet.Mvc.Razor;
|
||||
using Microsoft.AspNet.Mvc.Razor.Compilation;
|
||||
using Microsoft.AspNet.Mvc.Rendering;
|
||||
using Microsoft.AspNet.Security.Authorization;
|
||||
using Microsoft.AspNet.Security;
|
||||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
|
|
|
|||
|
|
@ -17,10 +17,11 @@
|
|||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Security.Claims;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.DependencyInjection;
|
||||
using Microsoft.AspNet.Mvc;
|
||||
using Microsoft.AspNet.Security.Authorization;
|
||||
using Microsoft.AspNet.Security;
|
||||
using Moq;
|
||||
using Xunit;
|
||||
|
||||
|
|
@ -141,7 +142,7 @@ namespace Microsoft.AspNet.Mvc.Core.Test
|
|||
bool authorizationServiceIsCalled = false;
|
||||
var authorizationService = new Mock<IAuthorizationService>();
|
||||
authorizationService
|
||||
.Setup(x => x.AuthorizeAsync(null, null))
|
||||
.Setup(x => x.AuthorizeAsync(Enumerable.Empty<Claim>(), null, null))
|
||||
.Returns(() =>
|
||||
{
|
||||
authorizationServiceIsCalled = true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue