public void Should_Validate_Products_With_Taken_Name_Upper_Case() { var spec = new ProductNameTakenSpecification(new Product(_validName.ToUpper(), price)); Assert.AreEqual(spec.IsSatisfiedBy(CreateValidProducts()), true); }
public void Should_Not_Validate_Products_With_Avaible_Name() { var spec = new ProductNameTakenSpecification(new Product(_avaibleName.ReverseString(), price)); Assert.AreEqual(spec.IsSatisfiedBy(CreateValidProducts()), false); }
public void Should_Validate_Products_With_Taken_Name() { var spec = new ProductNameTakenSpecification(CreateValidProducts()); Assert.AreEqual(spec.IsSatisfiedBy(CreateValidProducts()), true); }