Пример #1
0
        public void IsSatisfiedBy(decimal input, bool expected)
        {
            var  specification = new LatitudeSpecification();
            bool actual        = specification.IsSatisfiedBy(input);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        protected override bool IsValid(PropertyValidatorContext context)
        {
            decimal latitude = Convert.ToDecimal(context.PropertyValue);

            var specification = new LatitudeSpecification();

            return(specification.IsSatisfiedBy(latitude));
        }