public void SetUp() { mockContext = A.Fake <IApplicationContext>(); advice = new CacheParameterAdvice(); advice.ApplicationContext = mockContext; cache = new NonExpiringCache(); }
public void SetUp() { mocks = new MockRepository(); mockContext = (IApplicationContext) mocks.CreateMock(typeof (IApplicationContext)); advice = new CacheParameterAdvice(); advice.ApplicationContext = mockContext; cache = new NonExpiringCache(); }
public void SetUp() { mocks = new MockRepository(); mockContext = (IApplicationContext)mocks.CreateMock(typeof(IApplicationContext)); advice = new CacheParameterAdvice(); advice.ApplicationContext = mockContext; cache = new NonExpiringCache(); }
/// <summary> /// Creates new advisor instance. /// </summary> public CacheParameterAdvisor() { Advice = new CacheParameterAdvice(); Attribute = typeof(CacheParameterAttribute); Inherit = false; }