示例#1
0
 public void TestInit() {
     _mockCacheProvider = Substitute.For<ICacheProvider>();
     _manager = new DefaultCacheManager( _mockCacheProvider,new DefaultCacheKey() );
     _mockRepository = Substitute.For<ITest3Repository>();
     _key = "a";
     _cacheKey = "CacheKey_a";
     _signKey = "CacheKey_Sign_a";
     _testA = Test3.CreateA();
 }
示例#2
0
 public void TestInit()
 {
     _mockCacheProvider = Substitute.For <ICacheProvider>();
     _manager           = new DefaultCacheManager(_mockCacheProvider, new DefaultCacheKey());
     _mockRepository    = Substitute.For <ITest3Repository>();
     _key      = "a";
     _cacheKey = "CacheKey_a";
     _signKey  = "CacheKey_Sign_a";
     _testA    = Test3.CreateA();
 }