Epiworx.Business.UserPassword.AddBusinessRules C# (CSharp) Method

AddBusinessRules() protected method

protected AddBusinessRules ( ) : void
return 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));
        }