private void CheckFilterParameter(object filter, object value, FilterParameterType type) { FilterParameter filterParameter = (FilterParameter)filter; Assert.Equal(value, filterParameter.Value); Assert.Equal(type, filterParameter.FilterParameterType); }
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; } }