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 <TestCustomCacheStore>("custom storage");
 }
 public void Then_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInSharedBackingStore(null);
 }
 public void Then_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInIsolatedStorage("");
 }
Exemple #5
0
 public void Then_ThrowsArgumentNullException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", typeof(TestCustomCacheManager), null);
 }
Exemple #6
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreCacheMangerItemsInDatabase("database storage")
     .UseSharedDatabaseNamed("test connection");
 }
 protected override void Act()
 {
     ConfigureCacheManager.StoreInIsolatedStorage("isolated storage");
 }
Exemple #8
0
 public void Then_StoreInCustomStore_ThrowsArgumentNullException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", null);
 }
 public void Then_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInIsolatedStorage("isolated storage")
     .UsePartition(null);
 }
 protected override void Act()
 {
     ConfigureCacheManager.StoreInIsolatedStorage("isolated storage")
     .EncryptUsing.SharedEncryptionProviderNamed("shared encryption provider");
 }
Exemple #11
0
 public void Then_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreCacheMangerItemsInDatabase("instance name").UsePartition(null);
 }
Exemple #12
0
 public void Then_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreCacheMangerItemsInDatabase(null);
 }
Exemple #13
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreCacheMangerItemsInDatabase("database storage")
     .EncryptUsing.SharedEncryptionProviderNamed("encryption provider");
 }
Exemple #14
0
 public void Then_StoreInCustomStore_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInCustomStore(null, typeof(TestCustomCacheStore));
 }
 protected override void Act()
 {
     ConfigureCacheManager.StoreInIsolatedStorage("isolated storage")
     .UsePartition("partition");
 }
Exemple #16
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreInCustomStore("custom storage", typeof(TestCustomCacheStore))
     .EncryptUsing.SharedEncryptionProviderNamed("encryption provider");
 }
 protected override void Act()
 {
     ConfigureCacheManager = ConfigureCacheManager.UseAsDefaultCache();
 }
Exemple #18
0
 public void Then_StoreInCustomStore_ThrowsArgumentException()
 {
     ConfigureCacheManager.StoreInCustomStore("name", typeof(object));
 }
 protected override void Act()
 {
     ConfigureCacheManager.StoreInSharedBackingStore("shared Store");
 }
Exemple #20
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreInCustomStore("custom storage", typeof(TestCustomCacheStore));
 }
Exemple #21
0
 protected override void Act()
 {
     ConfigureCacheManager.StoreCacheMangerItemsInDatabase("database storage")
     .UsePartition("partition");
 }