Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void Should_Not_Validate_Products_With_Avaible_Name()
        {
            var spec = new ProductNameTakenSpecification(new Product(_avaibleName.ReverseString(), price));

            Assert.AreEqual(spec.IsSatisfiedBy(CreateValidProducts()), false);
        }
Beispiel #3
0
        public void Should_Validate_Products_With_Taken_Name()
        {
            var spec = new ProductNameTakenSpecification(CreateValidProducts());

            Assert.AreEqual(spec.IsSatisfiedBy(CreateValidProducts()), true);
        }