Click here to Skip to main content
12,397,480 members (60,290 online)
Click here to Skip to main content

Stats

74.1K views
64 downloads
116 bookmarked
Posted

Who cares about Domain Rules?

, 20 Nov 2006 MIT
With this article, I am evolving a domain problem towards the best possible solution.
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
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{99B64EC7-4720-4CEC-86B5-B8E62F94FF56}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>BusinessRules</RootNamespace>
    <AssemblyName>BusinessRules</AssemblyName>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <RunCodeAnalysis>true</RunCodeAnalysis>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="NMock2, Version=1.0.2313.18049, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Tools\NMock2.dll</HintPath>
    </Reference>
    <Reference Include="nunit.framework, Version=2.2.8.0, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>Tools\nunit.framework.dll</HintPath>
    </Reference>
    <Reference Include="System" />
    <Reference Include="System.Data" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="0 - Procedural_Way\Investor.cs" />
    <Compile Include="0 - Procedural_Way\Tests\InvestorFixture.cs" />
    <Compile Include="1 - Evolution One\AustralianInvestor.cs" />
    <Compile Include="1 - Evolution One\IInvestor.cs" />
    <Compile Include="1 - Evolution One\NewZealandInvestor.cs" />
    <Compile Include="1 - Evolution One\NullInvestor.cs" />
    <Compile Include="1 - Evolution One\Tests\InvestorFixture.cs" />
    <Compile Include="1 - Evolution One\UsaInvestor.cs" />
    <Compile Include="2 - Evolution Two\AustralianInvestor.cs" />
    <Compile Include="2 - Evolution Two\CurrentCultureInfo.cs" />
    <Compile Include="2 - Evolution Two\ICurrentCultureInfo.cs" />
    <Compile Include="2 - Evolution Two\IInvestor.cs" />
    <Compile Include="2 - Evolution Two\Investor.cs" />
    <Compile Include="2 - Evolution Two\NewZealandInvestor.cs" />
    <Compile Include="2 - Evolution Two\NullInvestor.cs" />
    <Compile Include="2 - Evolution Two\Tests\InvestorCreationFixture.cs" />
    <Compile Include="2 - Evolution Two\Tests\InvestorFixture.cs" />
    <Compile Include="2 - Evolution Two\USAInvestor.cs" />
    <Compile Include="3 - Evolution Three\AustralianIncomeTaxEngine.cs" />
    <Compile Include="3 - Evolution Three\CurrentCultureInfo.cs" />
    <Compile Include="3 - Evolution Three\ICurrentCultureInfo.cs" />
    <Compile Include="3 - Evolution Three\IInvestor.cs" />
    <Compile Include="3 - Evolution Three\IIncomeTaxEngine.cs" />
    <Compile Include="3 - Evolution Three\Investor.cs" />
    <Compile Include="3 - Evolution Three\IncomeTaxEngine.cs" />
    <Compile Include="3 - Evolution Three\NewZealandIncomeTaxEngine.cs" />
    <Compile Include="3 - Evolution Three\NullIncomeTaxEngine.cs" />
    <Compile Include="3 - Evolution Three\Tests\IncomeTaxEngineCreationFixture.cs" />
    <Compile Include="3 - Evolution Three\Tests\IncomeTaxEngineFixture.cs" />
    <Compile Include="3 - Evolution Three\Tests\InvestorFixture.cs" />
    <Compile Include="3 - Evolution Three\UsaIncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\AustralianIncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\CurrentCultureInfo.cs" />
    <Compile Include="4 - Evolution Four\ICurrentCultureInfo.cs" />
    <Compile Include="4 - Evolution Four\IInvestor.cs" />
    <Compile Include="4 - Evolution Four\IIncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\Investor.cs" />
    <Compile Include="4 - Evolution Four\IncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\NewZealandIncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\NullIncomeTaxEngine.cs" />
    <Compile Include="4 - Evolution Four\Tests\IncomeTaxEngineCreationFixture.cs" />
    <Compile Include="4 - Evolution Four\Tests\IncomeTaxEngineFixture.cs" />
    <Compile Include="4 - Evolution Four\Tests\InvestorFixture.cs" />
    <Compile Include="4 - Evolution Four\UsaIncomeTaxEngine.cs" />
    <Compile Include="5 - Evolution Five\CurrentCultureInfo.cs" />
    <Compile Include="5 - Evolution Five\ICurrentCultureInfo.cs" />
    <Compile Include="5 - Evolution Five\ITaxBandGenerator.cs" />
    <Compile Include="5 - Evolution Five\TaxBandGenerator.cs" />
    <Compile Include="5 - Evolution Five\TaxBand.cs" />
    <Compile Include="5 - Evolution Five\Tests\IncomeTaxBandGeneratorFixture.cs" />
    <Compile Include="5 - Evolution Five\Tests\IncomeTaxEngineFixture.cs" />
    <Compile Include="5 - Evolution Five\Tests\InvestorFixture.cs" />
    <Compile Include="5 - Evolution Five\Tests\TaxBandFixture.cs" />
    <Compile Include="5 - Evolution Five\UsaTaxBandGenerator.cs" />
    <Compile Include="5 - Evolution Five\IIncomeTaxEngine.cs" />
    <Compile Include="5 - Evolution Five\IInvestor.cs" />
    <Compile Include="5 - Evolution Five\IncomeTaxEngine.cs" />
    <Compile Include="5 - Evolution Five\Investor.cs" />
    <Compile Include="5 - Evolution Five\NewZealandTaxBandGenerator.cs" />
    <Compile Include="5 - Evolution Five\NullTaxBandGenerator.cs" />
    <Compile Include="5 - Evolution Five\AustralianTaxBandGenerator.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="0 - Procedural_Way\ProceduralWay.cd" />
    <None Include="1 - Evolution One\EvolutionOne.cd" />
    <None Include="2 - Evolution Two\EvolutionTwo.cd" />
    <None Include="3 - Evolution Three\EvolutionThree.cd" />
    <None Include="3 - Evolution Three\IncomeTaxEngine.cd" />
    <None Include="4 - Evolution Four\EvolutionFour.cd" />
    <None Include="5 - Evolution Five\EvolutionFive.cd" />
    <None Include="5 - Evolution Five\TaxBandGenerator.cd" />
  </ItemGroup>
  <ItemGroup>
    <Component Include="Tools\NMock2.dll" />
    <Component Include="Tools\nunit.framework.dll" />
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
       Other similar extension points exist, see Microsoft.Common.targets.
  <Target Name="BeforeBuild">
  </Target>
  <Target Name="AfterBuild">
  </Target>
  -->
</Project>

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

Share

About the Author

Maruis Marais
Web Developer
New Zealand New Zealand
No Biography provided

You may also be interested in...

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