Пример #1
0
        public void Should_Validade_Dish_With_Same_Id()
        {
            var spec = new DishIdEqualsToSpecification(1);

            Assert.AreEqual(spec.IsSatisfiedBy(new Dish {
                Id = 1
            }), true);
        }
Пример #2
0
        public void Should_Not_Validade_Dish_With_Diff_Id()
        {
            var spec = new DishIdEqualsToSpecification(2);

            Assert.AreEqual(spec.IsSatisfiedBy(new Dish {
                Id = 1
            }), false);
        }