Beispiel #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);
        }
Beispiel #2
0
        public override IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
        {
            var mapping = testShardMap.GetMappingForKey(value, lookupOptions);

            VerifyMapping(mapping);
            return(mapping);
        }
Beispiel #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);
        }
Beispiel #4
0
 public override void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions)
 {
     AssertThrowsShardManagementException(
         () => testShardMap.GetMappingForKey(value, lookupOptions),
         ShardManagementErrorCode.MappingNotFoundForKey);
 }
Beispiel #5
0
 public abstract void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions);
Beispiel #6
0
 public abstract void GetMappingForKey_NotExists <TKey>(TestShardMap <TKey> testShardMap, TKey value);
Beispiel #7
0
 public abstract IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value, LookupOptions lookupOptions);
Beispiel #8
0
 public abstract IMappingInfoProvider GetMappingForKey <TKey>(TestShardMap <TKey> testShardMap, TKey value);