Esempio n. 1
0
 public void SetUp()
 {
     _testHelper        = NullSecurityClientTestHelper.CreateForStatefulSecurity();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInfo        = typeof(SecurableObject).GetMethod("Show");
     _methodInformation = MockRepository.GenerateStub <IMethodInformation>();
 }
Esempio n. 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);
 }
 public void SetUp()
 {
     _testHelper     = NullSecurityClientTestHelper.CreateForStatelessSecurity();
     _securityClient = _testHelper.CreateSecurityClient();
 }
Esempio n. 4
0
 public void SetUp()
 {
     _testHelper        = NullSecurityClientTestHelper.CreateForStatefulSecurity();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MethodInfoAdapter.Create(typeof(SecurableObject).GetProperty("IsVisible").GetGetMethod());
 }