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);
 }
예제 #2
0
 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);
 }