public void SetUp() { _testHelper = new SecurityClientTestHelper(); _securityClient = _testHelper.CreateSecurityClient(); _propertyInformation = MockRepository.GenerateMock <IPropertyInformation>(); _methodInformation = MockRepository.GenerateMock <IMethodInformation> (); _propertyInformation.Expect(mock => mock.GetSetMethod(true)).Return(_methodInformation); }
public void SetUp() { _testHelper = NullSecurityClientTestHelper.CreateForStatefulSecurity(); _securityClient = _testHelper.CreateSecurityClient(); _propertyInfo = typeof(SecurableObject).GetProperty("IsVisible"); _propertyInformation = MockRepository.GenerateStub <IPropertyInformation>(); _methodInformation = MockRepository.GenerateMock <IMethodInformation> (); _propertyInformation.Expect(mock => mock.GetSetMethod(true)).Return(_methodInformation); }