public void Should_Validade_Dish_With_Same_Id() { var spec = new DishIdEqualsToSpecification(1); Assert.AreEqual(spec.IsSatisfiedBy(new Dish { Id = 1 }), true); }
public void Should_Not_Validade_Dish_With_Diff_Id() { var spec = new DishIdEqualsToSpecification(2); Assert.AreEqual(spec.IsSatisfiedBy(new Dish { Id = 1 }), false); }