示例#1
0
        public static FiltersTestingFixture Given_the_filters_collection_has_filters(this FiltersTestingFixture fixture, int maxFilters)
        {
            var filters = TestFilterData.GetFilter(maxFilters);

            fixture.Collection.InsertMany(filters);
            return(fixture);
        }
示例#2
0
        public static FiltersTestingFixture Given_the_filters_collection_is_empty(this FiltersTestingFixture fixture)
        {
            var filter = Builders <Filter> .Filter
                         .Where(p => p.DisplayName != "");

            fixture.Collection.DeleteMany(filter);
            return(fixture);
        }
示例#3
0
 public static HttpResponseMessage When_filters_endpoint_called(this FiltersTestingFixture fixture)
 {
     return(fixture.HttpClient.GetAsync($"/api/filters/filter1,filter2,filter3").Result);
 }