public void HasAccessGranted()
        {
            _testHelper.ExpectHasStatelessAccessForWxeFunction(typeof(TestFunctionWithThisObject), true);
            _testHelper.ReplayAll();

            bool hasAccess = _securityAdapter.HasAccess(null, new EventHandler(TestEventHandler));

            _testHelper.VerifyAll();
            Assert.That(hasAccess, Is.True);
        }
        public void HasAccessGranted_WithoutHandler()
        {
            _testHelper.ReplayAll();

            bool hasAccess = _securityAdapter.HasAccess(_testHelper.CreateSecurableObject(), null);

            _testHelper.VerifyAll();
            Assert.That(hasAccess, Is.True);
        }