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