예제 #1
0
        private void CheckFilterParameter(object filter, object value, FilterParameterType type)
        {
            FilterParameter filterParameter = (FilterParameter)filter;

            Assert.Equal(value, filterParameter.Value);
            Assert.Equal(type, filterParameter.FilterParameterType);
        }
예제 #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;
            }
        }