public static StringKey FindStringKeyWithoutType(this KeyToParametersConverter converter, IReadOnlyKeyValueCollection parameters, string keyType, string prefix) { Ensure.NotNull(converter, "converter"); StringKey key; if (converter.TryGetWithoutType(parameters, keyType, prefix, out key)) { return(key); } return(StringKey.Empty(keyType)); }
public void NotSupportedClassesForEmptyKey() { KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) }); keys.Add(StringKey.Empty("PriceList")); }
public void NotSupportedTypesForEmptyKey() { KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" }); keys.Add(StringKey.Empty("PriceList")); }