public void FilterByLocations_AnonymousData_CorrectQuery(Locations location)
        {
            var query = new Query(new HttpUtils());
            var sut = new FilterStreamQueryBuilder(query);

            sut.FilterByLocations(location);

            query.Locations.ShouldBeEquivalentTo(location);
        }
        public void FilterByLocations_AnonymousDataNotEmptyQuery_CorrectQuery(Locations location,
            [Frozen(Matching.ImplementedInterfaces)]Query query,
            FilterStreamQueryBuilder sut)
        {
            var oldValue = query.Locations;

            sut.FilterByLocations(location);

            query.Locations.ShouldBeEquivalentTo(oldValue.Concat(location));
        }
        public void FilterByLocationsBox_AnonymousData_CorrectQuery(Box box)
        {
            var query = new Query(new HttpUtils());
            var sut = new FilterStreamQueryBuilder(query);

            sut.FilterByLocations(box);

            query.Locations.ShouldBeEquivalentTo(new Locations(new[] { box }));
        }