public void Test_WithParamsArray() { _testHelper.ReplayAll(); _securityClient.CheckAccess(_testHelper.SecurableObject, AccessType.Get(TestAccessTypes.First)); _testHelper.VerifyAll(); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); _securityClient.CheckStaticMethodAccess(typeof(SecurableObject), "IsValid"); _testHelper.VerifyAll(); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); _securityClient.CheckConstructorAccess(typeof(SecurableObject)); _testHelper.VerifyAll(); }
public void Test_WithParamsArray() { _testHelper.ReplayAll(); bool hasAccess = _securityClient.HasStatelessAccess(typeof(SecurableObject), AccessType.Get(TestAccessTypes.First)); _testHelper.VerifyAll(); Assert.That(hasAccess, Is.EqualTo(true)); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); bool hasAccess = _securityClient.HasConstructorAccess(typeof(SecurableObject)); _testHelper.VerifyAll(); Assert.That(hasAccess, Is.True); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); _securityClient.CheckMethodAccess(_testHelper.SecurableObject, "Show"); _testHelper.VerifyAll(); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); _securityClient.CheckPropertyReadAccess(_testHelper.SecurableObject, "IsVisible"); _testHelper.VerifyAll(); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); bool hasAccess = _securityClient.HasPropertyWriteAccess(_testHelper.SecurableObject, "IsVisible"); Assert.That(hasAccess, Is.True); _testHelper.VerifyAll(); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); bool hasAccess = _securityClient.HasMethodAccess(_testHelper.SecurableObject, "Show"); _testHelper.VerifyAll(); Assert.That(hasAccess, Is.True); }
public void Test_AccessGranted() { _testHelper.ReplayAll(); bool hasAccess = _securityClient.HasStaticMethodAccess(typeof(SecurableObject), "IsValid"); _testHelper.VerifyAll(); Assert.That(hasAccess, Is.True); }