예제 #1
0
        public void Test_AccessGranted()
        {
            _testHelper.ReplayAll();

            _securityClient.CheckPropertyReadAccess(_testHelper.SecurableObject, "IsVisible");

            _testHelper.VerifyAll();
        }
예제 #2
0
        public void Test_AccessGranted()
        {
            _testHelper.ExpectPermissionReflectorGetRequiredMethodPermissions(_methodInformation, TestAccessTypes.First);
            _testHelper.ExpectObjectSecurityStrategyHasAccess(TestAccessTypes.First, true);
            _testHelper.ReplayAll();

            _securityClient.CheckPropertyReadAccess(_testHelper.SecurableObject, _methodInformation);

            _testHelper.VerifyAll();
        }
        public void Test_AccessGranted()
        {
            _testHelper.ExpectMemberResolverGetMethodInformation("get_InstanceProperty", MemberAffiliation.Instance, _methodInformation);
            _testHelper.ExpectPermissionReflectorGetRequiredMethodPermissions(_methodInformation, TestAccessTypes.First);
            _testHelper.ExpectObjectSecurityStrategyHasAccess(TestAccessTypes.First, true);
            _testHelper.ReplayAll();

            _securityClient.CheckPropertyReadAccess(_testHelper.SecurableObject, "InstanceProperty");

            _testHelper.VerifyAll();
        }