public void IsSatisfiedBy(decimal input, bool expected) { var specification = new LatitudeSpecification(); bool actual = specification.IsSatisfiedBy(input); Assert.Equal(expected, actual); }
protected override bool IsValid(PropertyValidatorContext context) { decimal latitude = Convert.ToDecimal(context.PropertyValue); var specification = new LatitudeSpecification(); return(specification.IsSatisfiedBy(latitude)); }