Ejemplo n.º 1
0
        public void ValidateInvalidCountryValue()
        {
            // Arrange
            var attribute = new CountryAttribute();
            var client    = new Client
            {
                Country = "RUB"
            };

            // Act
            ValidationResult result = attribute.GetValidationResult(client.Country, new ValidationContext(client));

            // Assert
            Assert.NotNull(result);
        }
Ejemplo n.º 2
0
 public CountryComparator(CountryAttribute attribute, bool inverted = false)
 {
     _attribute = attribute;
     _inverted  = inverted;
 }