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