private DataBackingStore CreateDataBackingStore() { DataCacheStorageData data = new DataCacheStorageData(); data.DatabaseInstanceName = "CachingDatabase"; data.PartitionName = "Partition1"; DataBackingStore backingStore = new DataBackingStore(); backingStore.Initialize(new TestCachingConfigurationView(data, Context)); return(backingStore); }
private DataBackingStore CreateBackingStore(string instanceName, string partitionName) { DataCacheStorageData data = new DataCacheStorageData(); data.DatabaseInstanceName = instanceName; data.PartitionName = partitionName; DataBackingStore backingStore = new DataBackingStore(); backingStore.Initialize(new TestCachingConfigurationView(data, Context)); return(backingStore); }
public override void FixtureSetup() { base.FixtureSetup (); DataCacheStorageData firstCacheData = new DataCacheStorageData(); firstCacheData.DatabaseInstanceName = "CachingDatabase"; firstCacheData.PartitionName = "Partition1"; firstCache = new DataBackingStore(); firstCache.Initialize(new TestCachingConfigurationView(firstCacheData, Context)); DataCacheStorageData secondCacheData = new DataCacheStorageData(); secondCacheData.DatabaseInstanceName = "CachingDatabase"; secondCacheData.PartitionName = "Partition2"; secondCache = new DataBackingStore(); secondCache.Initialize(new TestCachingConfigurationView(secondCacheData, Context)); }
public override void FixtureSetup() { base.FixtureSetup(); DataCacheStorageData firstCacheData = new DataCacheStorageData(); firstCacheData.DatabaseInstanceName = "CachingDatabase"; firstCacheData.PartitionName = "Partition1"; firstCache = new DataBackingStore(); firstCache.Initialize(new TestCachingConfigurationView(firstCacheData, Context)); DataCacheStorageData secondCacheData = new DataCacheStorageData(); secondCacheData.DatabaseInstanceName = "CachingDatabase"; secondCacheData.PartitionName = "Partition2"; secondCache = new DataBackingStore(); secondCache.Initialize(new TestCachingConfigurationView(secondCacheData, Context)); }
private DataBackingStore CreateDataBackingStore() { DataCacheStorageData data = new DataCacheStorageData(); data.DatabaseInstanceName = "CachingDatabase"; data.PartitionName = "Partition1"; DataBackingStore backingStore = new DataBackingStore(); backingStore.Initialize(new TestCachingConfigurationView(data, Context)); return backingStore; }
private DataBackingStore CreateBackingStore(string instanceName, string partitionName) { DataCacheStorageData data = new DataCacheStorageData(); data.DatabaseInstanceName = instanceName; data.PartitionName = partitionName; DataBackingStore backingStore = new DataBackingStore(); backingStore.Initialize(new TestCachingConfigurationView(data, Context)); return backingStore; }