コード例 #1
0
        public void Should_Not_Validade_Restaurants_With_Diff_Id()
        {
            var spec = new RestaurantIdEqualsToSpecification(2);

            Assert.AreEqual(spec.IsSatisfiedBy(new Restaurant {
                Id = 1
            }), false);
        }
コード例 #2
0
        public void Should_Validade_Restaurants_With_Same_Id()
        {
            var spec = new RestaurantIdEqualsToSpecification(1);

            Assert.AreEqual(spec.IsSatisfiedBy(new Restaurant {
                Id = 1
            }), true);
        }