private void CheckFilterParameter(object filter, object value, FilterParameterType type)
        {
            FilterParameter filterParameter = (FilterParameter)filter;

            Assert.AreEqual(value, filterParameter.Value);
            Assert.AreEqual(type, filterParameter.FilterParameterType);
        }
Exemple #2
0
        private void AddValueParameterToList(object filter, List <object> parameters)
        {
            FilterParameter filterParameter = filter as FilterParameter;

            if (filterParameter == null)
            {
                return;
            }

            if (filterParameter.FilterParameterType == FilterParameterType.Value)
            {
                parameters.Add(filterParameter.Value);
                return;
            }
        }