Exemplo n.º 1
0
        /// <summary>
        /// Checks if the football object is valid or not.
        /// </summary>
        /// <param name="football"> The football object we are validating. </param>
        /// <returns> If the football object is valid or not. </returns>
        public static ValidationResult IsValid(this Football football)
        {
            var validator = new FootballValidator();

            var result = validator.Validate(football);

            return(result);
        }
Exemplo n.º 2
0
 public FootballValidatorTests()
 {
     _footballValidator = new FootballValidator();
 }