Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Who cares about Domain Rules?

, 20 Nov 2006
With this article, I am evolving a domain problem towards the best possible solution.
domainrules_src.zip
BusinessRules
0 - Procedural_Way
0 - Procedural_Way.smp
ProceduralWay.cd
Tests
1 - Evolution One
1 - Evolution One.smp
EvolutionOne.cd
Tests
2 - Evolution Two
2 - Evolution Two.smp
EvolutionTwo.cd
Tests
3 - Evolution Three
3 - Evolution Three.smp
EvolutionThree.cd
IncomeTaxEngine.cd
Tests
4 - Evolution Four
4 - Evolution Four.smp
EvolutionFour.cd
Tests
5 - Evolution Five
5 - Evolution Five.smp
EvolutionFive.cd
TaxBandGenerator.cd
Tests
bin
Debug
BusinessRules.dll
BusinessRules.dll.lastcodeanalysissucceeded
NMock2.dll
BusinessRules.csproj.user
obj
Debug
BusinessRules.dll
TempPE
Properties
Tools
NMock2.dll
nunit.framework.dll
namespace BusinessRules.Evolution_Two
{
    /// <summary>
    /// Interface describing the Investor Domain object.
    /// </summary>
    public interface IInvestor
    {
        /// <summary>
        /// Gets or sets the income.
        /// </summary>
        /// <value>The income.</value>
        double Income { get; set; }

        /// <summary>
        /// Gets the tax liability.
        /// </summary>
        /// <value>The tax liability.</value>
        double TaxLiability { get; }

        /// <summary>
        /// Gets the tax rate.
        /// </summary>
        /// <value>The tax rate.</value>
        double TaxRate { get; }
    }
}

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 MIT License

About the Author

Maruis Marais
Web Developer
New Zealand New Zealand
No Biography provided

| Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 21 Nov 2006
Article Copyright 2006 by Maruis Marais
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid