Пример #1
0
        public void Should_Not_Validate_Restaurants_With_Avaible_Name()
        {
            var spec = new RestaurantNameTakenSpecification(new Restaurant(_avaibleName.ReverseString()));

            Assert.AreEqual(spec.IsSatisfiedBy(CreateValidRestaurants()), false);
        }
Пример #2
0
        public void Should_Validate_Restaurants_With_Taken_Name_Upper_Case()
        {
            var spec = new RestaurantNameTakenSpecification(new Restaurant(_validName.ToUpper()));

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