public void Should_Not_Validade_Restaurants_With_Diff_Id() { var spec = new RestaurantIdEqualsToSpecification(2); Assert.AreEqual(spec.IsSatisfiedBy(new Restaurant { Id = 1 }), false); }
public void Should_Validade_Restaurants_With_Same_Id() { var spec = new RestaurantIdEqualsToSpecification(1); Assert.AreEqual(spec.IsSatisfiedBy(new Restaurant { Id = 1 }), true); }