Exemplo n.º 1
0
        public void FilterProductsByColor()
        {
            var colorFilteredProducts = Filter.FilterBy(new ColorFilterSpecification(Color.Blue));

            var priceFilteredProducts = Filter.FilterBy(new PriceFilterSpecification(10));

            var priceAndColorFilteredProducts = Filter.FilterBy(new ColorPriceFilterSpecification(Color.Blue, 10));
        }
        public void can_filter_by_price()
        {
            var priceFilterSpecification = new PriceFilterSpecification(10m);

            _productFilter.FilterBy(priceFilterSpecification).Count().ShouldEqual(1);
        }