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); }
public CountryComparator(CountryAttribute attribute, bool inverted = false) { _attribute = attribute; _inverted = inverted; }