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