コード例 #1
0
        public void SetUp()
        {
            mockContext = A.Fake <IApplicationContext>();

            advice = new CacheParameterAdvice();
            advice.ApplicationContext = mockContext;

            cache = new NonExpiringCache();
        }
コード例 #2
0
        public void SetUp()
        {
            mocks = new MockRepository();
            mockContext = (IApplicationContext) mocks.CreateMock(typeof (IApplicationContext));

            advice = new CacheParameterAdvice();
            advice.ApplicationContext = mockContext;

            cache = new NonExpiringCache();
        }
コード例 #3
0
        public void SetUp()
        {
            mocks       = new MockRepository();
            mockContext = (IApplicationContext)mocks.CreateMock(typeof(IApplicationContext));

            advice = new CacheParameterAdvice();
            advice.ApplicationContext = mockContext;

            cache = new NonExpiringCache();
        }
コード例 #4
0
 /// <summary>
 /// Creates new advisor instance.
 /// </summary>
 public CacheParameterAdvisor()
 {
     Advice    = new CacheParameterAdvice();
     Attribute = typeof(CacheParameterAttribute);
     Inherit   = false;
 }
コード例 #5
0
 /// <summary>
 /// Creates new advisor instance.
 /// </summary>
 public CacheParameterAdvisor()
 {
     Advice = new CacheParameterAdvice();
     Attribute = typeof(CacheParameterAttribute);
     Inherit = false;
 }