Blog.Common.Web.Attributes.BlogAuthorizationAttribute.OnAuthenticationChallenge C# (CSharp) 메소드

OnAuthenticationChallenge() 공개 메소드

public OnAuthenticationChallenge ( System.Web.Mvc.Filters.AuthenticationChallengeContext filterContext ) : void
filterContext System.Web.Mvc.Filters.AuthenticationChallengeContext
리턴 void
        public void OnAuthenticationChallenge(AuthenticationChallengeContext filterContext)
        {

        }

Usage Example

 public void ShouldDoNothingOnAuthenticationChallenge()
 {
     var authChallengeContext = new Mock<AuthenticationChallengeContext>();
     var attribute = new BlogAuthorizationAttribute();
     
     Assert.DoesNotThrow(() => attribute.OnAuthenticationChallenge(authChallengeContext.Object));
 }