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);
        }
예제 #2
0
        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));
        }
예제 #4
0
        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;
 }
예제 #6
0
        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;
        }