コード例 #1
0
 protected override void Act()
 {
     attributes = new NameValueCollection();
     attributes.Add("key1", "value1");
     attributes.Add("key2", "value2");
     ConfigureCacheManager.StoreInCustomStore <TestCustomCacheStore>("custom storage", attributes);
 }
コード例 #2
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreInCustomStore("custom storage", typeof(TestCustomCacheStore));
 }
コード例 #3
0
 public void Then_ThrowsArgumentNullException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", typeof(TestCustomCacheManager), null);
 }
コード例 #4
0
 public void Then_StoreInCustomStore_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", typeof(object));
 }
コード例 #5
0
 public void Then_StoreInCustomStore_ThrowsArgumentNullException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", null);
 }
コード例 #6
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreInCustomStore("custom storage", typeof(TestCustomCacheStore))
     .EncryptUsing.SharedEncryptionProviderNamed("encryption provider");
 }
コード例 #7
0
 public void Then_StoreInCustomStore_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInCustomStore(null, typeof(TestCustomCacheStore));
 }
コード例 #8
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreInCustomStore <TestCustomCacheStore>("custom storage");
 }