Example #1
0
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation>();
     _methodInformation.Expect(n => n.Name).Return("StaticMethod");
 }
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation>();
     _propertyInfo      = typeof(SecurableObject).GetProperty("IsVisible");
     _methodInfo        = _propertyInfo.GetGetMethod();
 }
 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);
 }
Example #4
0
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation> ();
     _methodInformation.Expect(n => n.Name).Return("InstanceMethod");
     _methodInfo = typeof(SecurableObject).GetMethod("IsValid", new[] { typeof(SecurableObject) });
 }
Example #5
0
 public void SetUp()
 {
     _testHelper     = new SecurityClientTestHelper();
     _securityClient = _testHelper.CreateSecurityClient();
 }
 public void SetUp()
 {
     _testHelper        = new SecurityClientTestHelper();
     _securityClient    = _testHelper.CreateSecurityClient();
     _methodInformation = MockRepository.GenerateMock <IMethodInformation> ();
 }