public void al_validar_regionalData_countryCode_no_debe_ser_null_y_debe_tener_2_caracteres()
        {
            // Arrange.
            RegionalDataValidator validator = new Training.Persona.Business.Validators.RegionalDataValidator();

            // Act.

            // Assert.
            validator.ShouldHaveValidationErrorFor(r => r.CountryCode, new RegionalData()
            {
                CountryCode = null
            });
            validator.ShouldHaveValidationErrorFor(r => r.CountryCode, new RegionalData()
            {
                CountryCode = "X"
            });
            validator.ShouldHaveValidationErrorFor(r => r.CountryCode, new RegionalData()
            {
                CountryCode = "XXX"
            });

            validator.ShouldNotHaveValidationErrorFor(r => r.CountryCode, new RegionalData()
            {
                CountryCode = "XX"
            });
        }
        public void al_validar_regionalData_languageCode_si_no_es_null_no_debe_tener_mas_de_5_caracteres()
        {
            // Arrange.
            RegionalDataValidator validator = new Training.Persona.Business.Validators.RegionalDataValidator();

            // Act.

            // Assert.
            validator.ShouldHaveValidationErrorFor(r => r.LanguageCode, new RegionalData()
            {
                LanguageCode = string.Empty.PadRight(6, 'X')
            });

            validator.ShouldNotHaveValidationErrorFor(r => r.LanguageCode, new RegionalData()
            {
                LanguageCode = null
            });
            validator.ShouldNotHaveValidationErrorFor(r => r.LanguageCode, new RegionalData()
            {
                LanguageCode = string.Empty.PadRight(5, 'X')
            });
        }
        public void al_validar_regionalData_timeFormat_si_no_es_null_no_debe_tener_más_de_15_caracteres()
        {
            // Arrange.
            RegionalDataValidator validator = new Training.Persona.Business.Validators.RegionalDataValidator();

            // Act.

            // Assert.
            validator.ShouldHaveValidationErrorFor(r => r.TimeFormat, new RegionalData()
            {
                TimeFormat = string.Empty.PadRight(16, 'X')
            });

            validator.ShouldNotHaveValidationErrorFor(r => r.TimeFormat, new RegionalData()
            {
                TimeFormat = null
            });
            validator.ShouldNotHaveValidationErrorFor(r => r.TimeFormat, new RegionalData()
            {
                TimeFormat = string.Empty.PadRight(15, 'X')
            });
        }