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> (); _methodInformation.Expect(n => n.Name).Return("InstanceMethod"); _methodInfo = typeof(SecurableObject).GetMethod("IsValid", new[] { typeof(SecurableObject) }); }