Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public void NotSupportedClassesForEmptyKey()
        {
            KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) });

            keys.Add(StringKey.Empty("PriceList"));
        }
Ejemplo n.º 3
0
        public void NotSupportedTypesForEmptyKey()
        {
            KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" });

            keys.Add(StringKey.Empty("PriceList"));
        }