public bool HasMethodAccess(ISecurableObject securableObject, string methodName, ISecurityPrincipal principal)
        {
            ArgumentUtility.CheckNotNull("securableObject", securableObject);
            ArgumentUtility.CheckNotNullOrEmpty("methodName", methodName);
            ArgumentUtility.DebugCheckNotNull("principal", principal);

            var methodInformation = _memberResolver.GetMethodInformation(securableObject.GetSecurableType(), methodName, MemberAffiliation.Instance);

            return(HasMethodAccess(securableObject, methodInformation, principal));
        }
 public void ExpectMemberResolverGetMethodInformation(string methodName, MemberAffiliation memberAffiliation, IMethodInformation returnValue)
 {
     Expect.Call(_mockMemberResolver.GetMethodInformation(typeof(SecurableObject), methodName, memberAffiliation)).Return(returnValue);
 }