Epiworx.Business.UserPassword.AddBusinessRules C# (CSharp) 메소드

AddBusinessRules() 보호된 메소드

protected AddBusinessRules ( ) : void
리턴 void
        protected override void AddBusinessRules()
        {
            base.AddBusinessRules();

            this.BusinessRules.AddRule(new StringRequired(PasswordProperty));
            this.BusinessRules.AddRule(new MaxLength(PasswordProperty, 50));
            this.BusinessRules.AddRule(new StringRequired(PasswordConfirmationProperty));
            this.BusinessRules.AddRule(new MaxLength(PasswordConfirmationProperty, 50));
            this.BusinessRules.AddRule(new PropertiesMustMatch(PasswordProperty, PasswordConfirmationProperty));
            this.BusinessRules.AddRule(new Dependency(PasswordProperty, PasswordConfirmationProperty));
            this.BusinessRules.AddRule(new Dependency(PasswordConfirmationProperty, PasswordProperty));
        }