예제 #1
0
        public override void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
        {
            bool ret = testShardMap.TryGetMappingForKey(value, lookupOptions, out IMappingInfoProvider mapping);

            Assert.IsFalse(ret);
            Assert.IsNull(mapping);
        }
예제 #2
0
        public override IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
        {
            var mapping = testShardMap.GetMappingForKey(value, lookupOptions);

            VerifyMapping(mapping);
            return(mapping);
        }
예제 #3
0
        public override IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
        {
            bool ret = testShardMap.TryGetMappingForKey(value, lookupOptions, out IMappingInfoProvider mapping);

            Assert.IsTrue(ret);
            VerifyMapping(mapping);
            return(mapping);
        }
예제 #4
0
 public override void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
 {
     AssertThrowsShardManagementException(
         () => testShardMap.GetMappingForKey(value, lookupOptions),
         ShardManagementErrorCode.MappingNotFoundForKey);
 }
예제 #5
0
 public abstract void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions);
예제 #6
0
 public abstract void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value);
예제 #7
0
 public abstract IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions);
예제 #8
0
 public abstract IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value);