public void ThrowArgumentExceptionIfInputNotValid()
        {
            AddQueryParameterWithValidModelMember(new ContextValue
            {
                Values = new List <object>
                {
                    new SearchFilterModel
                    {
                        FieldName = "Foo"
                    }
                }
            });

            var searchFilterProvider = new SearchFilterProvider(null);

            Should.Throw <ArgumentException>(() => searchFilterProvider.GenerateStringFilter(_queryParams, _members));
        }
        public void ShouldReturnNullIfNoMatchingFiltersFound()
        {
            var searchFilterProvider = new SearchFilterProvider(new List <ISearchFilter>());

            searchFilterProvider.GenerateStringFilter(_queryParams, _members).ShouldBeNull();
        }
        public void NoMatchShouldReturnNull()
        {
            var searchFilterProvider = new SearchFilterProvider(null);

            searchFilterProvider.GenerateStringFilter(_queryParams, _members).ShouldBeNull();
        }