Click here to Skip to main content
15,893,190 members
Articles / Programming Languages / C#

Attribute-flavored Domain Driven Design

Rate me:
Please Sign up or sign in to vote.
4.00/5 (2 votes)
6 Apr 2008CPOL8 min read 39.2K   231   25  
A centralized business domain with a common base
using System.Drawing;
using Codebasement.DomainDrivenDesign.Basement.Enums;

namespace Codebasement.DomainDrivenDesign.Basement.Utilities
{
    /// <summary>
    /// PasswordValidity
    /// </summary>
    public struct PasswordValidity
    {
        /// <summary>
        /// IsValid
        /// </summary>
        public bool IsValid;

        /// <summary>
        /// Enum PasswordStrength indicator for the password strength
        /// </summary>
        public PasswordStrength PasswordStrengthIndicator;

        /// <summary>
        /// Numerical indicator for the password strength
        /// </summary>
        public int PasswordStrengthNumerical;

        /// <summary>
        /// Percentage indicator for the password strength
        /// </summary>
        public int PasswordStrengthPercentage;

        /// <summary>
        /// Color indicator for the password strength
        /// </summary>
        public Color PasswordStrengthColor;

        /// <summary>
        /// Rating
        /// </summary>
        public double Rating;

        /// <summary>
        /// ErrorText
        /// </summary>
        public string ErrorText;

    }

}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Netherlands Netherlands
Software engineer & architect.

Comments and Discussions