Blog.Common.Web.Attributes.BlogAuthorizationAttribute.OnAuthenticationChallenge C# (CSharp) Method

OnAuthenticationChallenge() public method

public OnAuthenticationChallenge ( System.Web.Mvc.Filters.AuthenticationChallengeContext filterContext ) : void
filterContext System.Web.Mvc.Filters.AuthenticationChallengeContext
return 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));
 }