Beispiel #1
0
        public void OrderByColor()
        {
            var colorSpecification = new ColorSpecification("red");

            var filteredList = filterManager.Apply(productList, colorSpecification);

            foreach (var product in filteredList)
            {
                Assert.AreEqual("red", product.Color());
            }
        }