Commit afd02d2

mokhan <mokhan@ce5e1baf-6525-42e4-a1b2-857ea38da20a>
2009-04-17 19:06:17
git-svn-id: https://svn.xp-dev.com/svn/mokhan-mo.money@162 ce5e1baf-6525-42e4-a1b2-857ea38da20a
1 parent 162eb40
trunk/product/MyMoney/Domain/accounting/billing/Bill.cs → trunk/product/MoMoney.Domain/Accounting/Billing/Bill.cs
@@ -15,7 +15,7 @@ namespace MoMoney.Domain.accounting.billing
     }
 
     [Serializable]
-    internal class Bill : Entity<IBill>, IBill
+    public class Bill : Entity<IBill>, IBill
     {
         public Bill(ICompany company_to_pay, IMoney the_amount_owed, DateTime due_date)
         {
trunk/product/MyMoney/Domain/accounting/billing/BillingExtensions.cs → trunk/product/MoMoney.Domain/Accounting/Billing/BillingExtensions.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/BillSpecs.cs → trunk/product/MoMoney.Domain/Accounting/Billing/BillSpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/Company.cs → trunk/product/MoMoney.Domain/Accounting/Billing/Company.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/CompanyFactory.cs → trunk/product/MoMoney.Domain/Accounting/Billing/CompanyFactory.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/IEmployee.cs → trunk/product/MoMoney.Domain/Accounting/Billing/IEmployee.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/ILedgerEntry.cs → trunk/product/MoMoney.Domain/Accounting/Billing/ILedgerEntry.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/Payment.cs → trunk/product/MoMoney.Domain/Accounting/Billing/Payment.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/billing/total_payments_calculator.cs → trunk/product/MoMoney.Domain/Accounting/Billing/total_payments_calculator.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/financial_growth/income.cs → trunk/product/MoMoney.Domain/Accounting/Growth/income.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/financial_growth/income_extensions.cs → trunk/product/MoMoney.Domain/Accounting/Growth/income_extensions.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/AccountHolder.cs → trunk/product/MoMoney.Domain/Accounting/AccountHolder.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/AccountHolderSpecs.cs → trunk/product/MoMoney.Domain/Accounting/AccountHolderSpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/GeneralLedger.cs → trunk/product/MoMoney.Domain/Accounting/GeneralLedger.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/GeneralLedgerSpecs.cs → trunk/product/MoMoney.Domain/Accounting/GeneralLedgerSpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/accounting/IInvoice.cs → trunk/product/MoMoney.Domain/Accounting/IInvoice.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Clock.cs → trunk/product/MoMoney.Domain/Core/Clock.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/date.cs → trunk/product/MoMoney.Domain/Core/date.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/date_specs.cs → trunk/product/MoMoney.Domain/Core/date_specs.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/DateExtensions.cs → trunk/product/MoMoney.Domain/Core/DateExtensions.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/day.cs → trunk/product/MoMoney.Domain/Core/day.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Entity.cs → trunk/product/MoMoney.Domain/Core/Entity.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/IYear.cs → trunk/product/MoMoney.Domain/Core/IYear.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Money.cs → trunk/product/MoMoney.Domain/Core/Money.cs
@@ -11,7 +11,7 @@ namespace MoMoney.Domain.Core
     }
 
     [Serializable]
-    internal class Money : IMoney
+    public class Money : IMoney
     {
         public Money(long dollars) : this(dollars, 0)
         {
trunk/product/MyMoney/Domain/Core/MoneyExtensions.cs → trunk/product/MoMoney.Domain/Core/MoneyExtensions.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/MoneyExtensionsSpecs.cs → trunk/product/MoMoney.Domain/Core/MoneyExtensionsSpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/MoneySpecs.cs → trunk/product/MoMoney.Domain/Core/MoneySpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Month.cs → trunk/product/MoMoney.Domain/Core/Month.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Months.cs → trunk/product/MoMoney.Domain/Core/Months.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/Percent.cs → trunk/product/MoMoney.Domain/Core/Percent.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/PercentSpecs.cs → trunk/product/MoMoney.Domain/Core/PercentSpecs.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/range.cs → trunk/product/MoMoney.Domain/Core/range.cs
File renamed without changes
trunk/product/MyMoney/Domain/Core/range_specs.cs → trunk/product/MoMoney.Domain/Core/range_specs.cs
File renamed without changes
trunk/product/MyMoney/Domain/repositories/IBillRepository.cs → trunk/product/MoMoney.Domain/Repositories/IBillRepository.cs
File renamed without changes
trunk/product/MyMoney/Domain/repositories/ICompanyRepository.cs → trunk/product/MoMoney.Domain/Repositories/ICompanyRepository.cs
File renamed without changes
trunk/product/MyMoney/Domain/repositories/IIncomeRepository.cs → trunk/product/MoMoney.Domain/Repositories/IIncomeRepository.cs
File renamed without changes
trunk/product/MoMoney.Domain/MoMoney.Domain.csproj
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <PropertyGroup>
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+    <ProductVersion>9.0.30729</ProductVersion>
+    <SchemaVersion>2.0</SchemaVersion>
+    <ProjectGuid>{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}</ProjectGuid>
+    <OutputType>Library</OutputType>
+    <AppDesignerFolder>Properties</AppDesignerFolder>
+    <RootNamespace>MoMoney.Domain</RootNamespace>
+    <AssemblyName>MoMoney.Domain</AssemblyName>
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+    <FileAlignment>512</FileAlignment>
+  </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>
+  </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="bdddoc, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\build\lib\test\bdd.doc\bdddoc.dll</HintPath>
+    </Reference>
+    <Reference Include="developwithpassion.bdd, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\build\lib\test\developwithpassion\developwithpassion.bdd.dll</HintPath>
+    </Reference>
+    <Reference Include="Rhino.Mocks, Version=3.5.0.1337, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
+      <SpecificVersion>False</SpecificVersion>
+      <HintPath>..\..\build\lib\test\rhino.mocks\Rhino.Mocks.dll</HintPath>
+    </Reference>
+    <Reference Include="System" />
+    <Reference Include="System.Core">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Xml.Linq">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data.DataSetExtensions">
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>
+    </Reference>
+    <Reference Include="System.Data" />
+    <Reference Include="System.Xml" />
+  </ItemGroup>
+  <ItemGroup>
+    <Compile Include="Accounting\AccountHolder.cs" />
+    <Compile Include="Accounting\AccountHolderSpecs.cs" />
+    <Compile Include="Accounting\Billing\Bill.cs" />
+    <Compile Include="Accounting\Billing\BillingExtensions.cs" />
+    <Compile Include="Accounting\Billing\BillSpecs.cs" />
+    <Compile Include="Accounting\Billing\Company.cs" />
+    <Compile Include="Accounting\Billing\CompanyFactory.cs" />
+    <Compile Include="Accounting\Billing\IEmployee.cs" />
+    <Compile Include="Accounting\Billing\ILedgerEntry.cs" />
+    <Compile Include="Accounting\Billing\Payment.cs" />
+    <Compile Include="Accounting\Billing\total_payments_calculator.cs" />
+    <Compile Include="Accounting\GeneralLedger.cs" />
+    <Compile Include="Accounting\GeneralLedgerSpecs.cs" />
+    <Compile Include="Accounting\Growth\income.cs" />
+    <Compile Include="Accounting\Growth\income_extensions.cs" />
+    <Compile Include="Accounting\IInvoice.cs" />
+    <Compile Include="Core\Clock.cs" />
+    <Compile Include="Core\date.cs" />
+    <Compile Include="Core\DateExtensions.cs" />
+    <Compile Include="Core\date_specs.cs" />
+    <Compile Include="Core\day.cs" />
+    <Compile Include="Core\Entity.cs" />
+    <Compile Include="Core\IYear.cs" />
+    <Compile Include="Core\Money.cs" />
+    <Compile Include="Core\MoneyExtensions.cs" />
+    <Compile Include="Core\MoneyExtensionsSpecs.cs" />
+    <Compile Include="Core\MoneySpecs.cs" />
+    <Compile Include="Core\Month.cs" />
+    <Compile Include="Core\Months.cs" />
+    <Compile Include="Core\Percent.cs" />
+    <Compile Include="Core\PercentSpecs.cs" />
+    <Compile Include="Core\range.cs" />
+    <Compile Include="Core\range_specs.cs" />
+    <Compile Include="Repositories\IBillRepository.cs" />
+    <Compile Include="Repositories\ICompanyRepository.cs" />
+    <Compile Include="Repositories\IIncomeRepository.cs" />
+  </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\Gorilla.Commons.Testing\Gorilla.Commons.Testing.csproj">
+      <Project>{44E65096-9657-4716-90F8-4535BABE8039}</Project>
+      <Name>Gorilla.Commons.Testing</Name>
+    </ProjectReference>
+    <ProjectReference Include="..\Gorilla.Commons.Utility\Gorilla.Commons.Utility.csproj">
+      <Project>{DD8FD29E-7424-415C-9BA3-7D9F6ECBA161}</Project>
+      <Name>Gorilla.Commons.Utility</Name>
+    </ProjectReference>
+  </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Properties\" />
+  </ItemGroup>
+  <Import Project="$(MSBuildToolsPath)\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>
\ No newline at end of file
trunk/product/MyMoney/Testing/spechelpers/contexts/behaves_like_a_repository.cs → trunk/product/MyMoney/Testing/behaves_like_a_repository.cs
File renamed without changes
trunk/product/MyMoney/Testing/MetaData/RunInRealContainer.cs → trunk/product/MyMoney/Testing/RunInRealContainer.cs
File renamed without changes
trunk/product/MyMoney/MyMoney.csproj
@@ -181,36 +181,9 @@
     <Compile Include="DataAccess\repositories\BillRepositorySpecs.cs" />
     <Compile Include="DataAccess\repositories\CompanyRepository.cs" />
     <Compile Include="DataAccess\repositories\IncomeRepository.cs" />
-    <Compile Include="Domain\accounting\billing\CompanyFactory.cs" />
-    <Compile Include="Domain\accounting\billing\IEmployee.cs" />
-    <Compile Include="Domain\accounting\financial_growth\income.cs" />
-    <Compile Include="Domain\accounting\financial_growth\income_extensions.cs" />
-    <Compile Include="Domain\accounting\IInvoice.cs" />
-    <Compile Include="Domain\Core\Clock.cs" />
-    <Compile Include="Domain\Core\DateExtensions.cs" />
-    <Compile Include="Domain\Core\date_specs.cs" />
-    <Compile Include="Domain\Core\day.cs" />
-    <Compile Include="Domain\Core\Entity.cs" />
-    <Compile Include="Domain\Core\date.cs" />
     <Compile Include="DataAccess\core\IDatabaseGateway.cs" />
     <Compile Include="DataAccess\db40\SessionContext.cs" />
     <Compile Include="DataAccess\db40\SessionContextSpecs.cs" />
-    <Compile Include="Domain\accounting\billing\BillingExtensions.cs" />
-    <Compile Include="Domain\accounting\billing\Company.cs" />
-    <Compile Include="Domain\accounting\AccountHolder.cs" />
-    <Compile Include="Domain\accounting\AccountHolderSpecs.cs" />
-    <Compile Include="Domain\accounting\billing\total_payments_calculator.cs" />
-    <Compile Include="Domain\Core\IYear.cs" />
-    <Compile Include="Domain\Core\MoneyExtensions.cs" />
-    <Compile Include="Domain\Core\MoneyExtensionsSpecs.cs" />
-    <Compile Include="Domain\Core\MoneySpecs.cs" />
-    <Compile Include="Domain\Core\Percent.cs" />
-    <Compile Include="Domain\Core\PercentSpecs.cs" />
-    <Compile Include="Domain\Core\range.cs" />
-    <Compile Include="Domain\Core\range_specs.cs" />
-    <Compile Include="Domain\repositories\IBillRepository.cs" />
-    <Compile Include="Domain\repositories\ICompanyRepository.cs" />
-    <Compile Include="Domain\repositories\IIncomeRepository.cs" />
     <Compile Include="Infrastructure\transactions2\ChangeTracker.cs" />
     <Compile Include="Infrastructure\transactions2\ChangeTrackerFactory.cs" />
     <Compile Include="Infrastructure\transactions2\ChangeTrackerFactorySpecs.cs" />
@@ -282,15 +255,6 @@
     <Compile Include="Infrastructure\reflection\IAssembly.cs" />
     <Compile Include="Infrastructure\registries\DefaultRegistry.cs" />
     <Compile Include="Infrastructure\registries\DefaultRegistrySpecs.cs" />
-    <Compile Include="Domain\accounting\billing\Bill.cs" />
-    <Compile Include="Domain\accounting\billing\BillSpecs.cs" />
-    <Compile Include="Domain\accounting\GeneralLedger.cs" />
-    <Compile Include="Domain\accounting\GeneralLedgerSpecs.cs" />
-    <Compile Include="Domain\accounting\billing\ILedgerEntry.cs" />
-    <Compile Include="Domain\accounting\billing\Payment.cs" />
-    <Compile Include="Domain\Core\Money.cs" />
-    <Compile Include="Domain\Core\Month.cs" />
-    <Compile Include="Domain\Core\Months.cs" />
     <Compile Include="Infrastructure\Container\Windsor\configuration\ComponentRegistrationConfiguration.cs" />
     <Compile Include="Infrastructure\System\ApplicationEnvironment.cs" />
     <Compile Include="Infrastructure\Threading\AsynchronousCommandProcessor.cs" />
@@ -794,8 +758,8 @@
     <Compile Include="boot\container\registration\wire_up_the_mappers_in_to_the.cs" />
     <Compile Include="boot\container\registration\wire_up_the_reports_in_to_the.cs" />
     <Compile Include="boot\container\registration\wire_up_the_views_in_to_the.cs" />
-    <Compile Include="Testing\MetaData\RunInRealContainer.cs" />
-    <Compile Include="Testing\spechelpers\contexts\behaves_like_a_repository.cs" />
+    <Compile Include="Testing\RunInRealContainer.cs" />
+    <Compile Include="Testing\behaves_like_a_repository.cs" />
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\Gorilla.Commons.Testing\Gorilla.Commons.Testing.csproj">
@@ -806,17 +770,21 @@
       <Project>{DD8FD29E-7424-415C-9BA3-7D9F6ECBA161}</Project>
       <Name>Gorilla.Commons.Utility</Name>
     </ProjectReference>
+    <ProjectReference Include="..\MoMoney.Domain\MoMoney.Domain.csproj">
+      <Project>{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}</Project>
+      <Name>MoMoney.Domain</Name>
+    </ProjectReference>
   </ItemGroup>
   <ItemGroup>
     <Folder Include="DataAccess\sqlcompact\" />
+    <Folder Include="Domain\accounting\billing\" />
+    <Folder Include="Domain\accounting\financial_growth\" />
+    <Folder Include="Domain\Core\" />
+    <Folder Include="Domain\repositories\" />
     <Folder Include="Infrastructure\caching\" />
     <Folder Include="Presentation\Views\Menu\Mappers\" />
     <Folder Include="Tasks\domain\" />
     <Folder Include="Tasks\Stubs\" />
-    <Folder Include="Testing\spechelpers\concerns\" />
-    <Folder Include="Testing\spechelpers\core\" />
-    <Folder Include="Utility\Core\" />
-    <Folder Include="Utility\Extensions\" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
trunk/solution.sln
@@ -9,6 +9,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gorilla.Commons.Utility", "
 EndProject
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Gorilla.Commons.Testing", "product\Gorilla.Commons.Testing\Gorilla.Commons.Testing.csproj", "{44E65096-9657-4716-90F8-4535BABE8039}"
 EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MoMoney.Domain", "product\MoMoney.Domain\MoMoney.Domain.csproj", "{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
@@ -31,6 +33,10 @@ Global
 		{44E65096-9657-4716-90F8-4535BABE8039}.Debug|Any CPU.Build.0 = Debug|Any CPU
 		{44E65096-9657-4716-90F8-4535BABE8039}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{44E65096-9657-4716-90F8-4535BABE8039}.Release|Any CPU.Build.0 = Release|Any CPU
+		{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{BE790BCC-4412-473F-9D0A-5AA48FE7A74F}.Release|Any CPU.Build.0 = Release|Any CPU
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE