Commit c035e91
Changed files (14)
trunk
product
MoMoney.DataAccess
MoMoney.Infrastructure
MyMoney
boot
Presentation
Model
Menu
File
Commands
Presenters
Commands
trunk/product/MoMoney.Infrastructure/Transactions2/ConfigureDatabaseStep.cs → trunk/product/MoMoney.DataAccess/Transactions2/ConfigureDatabaseStep.cs
File renamed without changes
trunk/product/MoMoney.Infrastructure/Transactions2/DatabaseConnection.cs → trunk/product/MoMoney.DataAccess/Transactions2/DatabaseConnection.cs
@@ -4,15 +4,6 @@ using Db4objects.Db4o;
namespace MoMoney.Infrastructure.transactions2
{
- public interface IDatabaseConnection : IDisposable
- {
- IEnumerable<T> query<T>();
- IEnumerable<T> query<T>(Predicate<T> predicate);
- void delete<T>(T entity);
- void commit();
- void store<T>(T entity);
- }
-
public class DatabaseConnection : IDatabaseConnection
{
readonly IObjectContainer container;
trunk/product/MoMoney.DataAccess/MoMoney.DataAccess.csproj
@@ -85,8 +85,10 @@
<Compile Include="Repositories\IncomeRepository.cs" />
<Compile Include="Testing\behaves_like_a_repository.cs" />
<Compile Include="Testing\RunInRealContainer.cs" />
+ <Compile Include="Transactions2\ConfigureDatabaseStep.cs" />
<Compile Include="Transactions2\ConnectionFactory.cs" />
<Compile Include="Transactions2\Database.cs" />
+ <Compile Include="Transactions2\DatabaseConnection.cs" />
<Compile Include="Transactions2\IDatabaseConfiguration.cs" />
</ItemGroup>
<ItemGroup>
trunk/product/MoMoney.Infrastructure/Transactions2/ChangeTrackerFactorySpecs.cs
@@ -10,7 +10,7 @@ namespace MoMoney.Infrastructure.transactions2
public class when_creating_a_change_tracker_for_an_item : concerns_for<IChangeTrackerFactory, ChangeTrackerFactory>
{
- it should_return_a_new_tracker = () => { result.should_not_be_null(); };
+ it should_return_a_new_tracker = () => result.should_not_be_null();
because b = () => { result = sut.create_for<IEntity>(); };
trunk/product/MoMoney.Infrastructure/Transactions2/IDatabaseConnection.cs
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+
+namespace MoMoney.Infrastructure.transactions2
+{
+ public interface IDatabaseConnection : IDisposable
+ {
+ IEnumerable<T> query<T>();
+ IEnumerable<T> query<T>(Predicate<T> predicate);
+ void delete<T>(T entity);
+ void commit();
+ void store<T>(T entity);
+ }
+}
\ No newline at end of file
trunk/product/MoMoney.Infrastructure/MoMoney.Infrastructure.csproj
@@ -59,14 +59,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\build\lib\app\castle\Castle.Windsor.dll</HintPath>
</Reference>
- <Reference Include="Db4objects.Db4o, Version=7.5.57.11498, Culture=neutral, PublicKeyToken=6199cd4f203aa8eb, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\lib\app\db40\Db4objects.Db4o.dll</HintPath>
- </Reference>
- <Reference Include="Db4objects.Db4o.Linq, Version=7.5.57.11498, Culture=neutral, PublicKeyToken=6199cd4f203aa8eb, processorArchitecture=MSIL">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>..\..\build\lib\app\db40\Db4objects.Db4o.Linq.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>
@@ -87,7 +79,6 @@
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
- <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
@@ -112,16 +103,11 @@
<Compile Include="Container\Resolve.cs" />
<Compile Include="Container\ResolveSpecs.cs" />
<Compile Include="Container\Windsor\Configuration\ApplyLoggingInterceptor.cs" />
- <Compile Include="Container\Windsor\Configuration\ComponentExclusionSpecification.cs" />
- <Compile Include="Container\Windsor\Configuration\ComponentExclusionSpecificationSpecs.cs">
- <SubType>Form</SubType>
- </Compile>
<Compile Include="Container\Windsor\Configuration\ComponentRegistrationConfiguration.cs" />
<Compile Include="Container\Windsor\Configuration\ConfigureComponentLifestyle.cs" />
<Compile Include="Container\Windsor\Configuration\IComponentExclusionSpecification.cs" />
<Compile Include="Container\Windsor\Configuration\LogComponent.cs" />
<Compile Include="Container\Windsor\Configuration\RegisterComponentContract.cs" />
- <Compile Include="Container\Windsor\Configuration\type_extensions.cs" />
<Compile Include="Container\Windsor\WindsorContainerFactory.cs" />
<Compile Include="Container\Windsor\WindsorDependencyRegistry.cs" />
<Compile Include="Container\Windsor\WindsorDependencyRegistrySpecs.cs" />
@@ -169,7 +155,6 @@
<Compile Include="Reflection\IAssembly.cs" />
<Compile Include="Registries\DefaultRegistry.cs" />
<Compile Include="Registries\DefaultRegistrySpecs.cs" />
- <Compile Include="System\ApplicationEnvironment.cs" />
<Compile Include="Threading\AsynchronousCommandProcessor.cs" />
<Compile Include="Threading\BackgroundThread.cs" />
<Compile Include="Threading\BackgroundThreadFactory.cs" />
@@ -197,13 +182,12 @@
<Compile Include="Transactions2\ChangeTrackerFactory.cs" />
<Compile Include="Transactions2\ChangeTrackerFactorySpecs.cs" />
<Compile Include="Transactions2\ChangeTrackerSpecs.cs" />
- <Compile Include="Transactions2\ConfigureDatabaseStep.cs" />
<Compile Include="Transactions2\Context.cs" />
- <Compile Include="Transactions2\DatabaseConnection.cs" />
<Compile Include="Transactions2\EmptyUnitOfWork.cs" />
<Compile Include="Transactions2\IChangeTracker.cs" />
<Compile Include="Transactions2\IChangeTrackerFactory.cs" />
<Compile Include="Transactions2\IDatabase.cs" />
+ <Compile Include="Transactions2\IDatabaseConnection.cs" />
<Compile Include="Transactions2\IdentityMapProxy.cs" />
<Compile Include="Transactions2\IdentityMapSpecs.cs" />
<Compile Include="Transactions2\IIdentityMap.cs" />
trunk/product/MoMoney.Infrastructure/Container/Windsor/Configuration/ComponentExclusionSpecification.cs → trunk/product/MyMoney/boot/container/ComponentExclusionSpecification.cs
File renamed without changes
trunk/product/MoMoney.Infrastructure/Container/Windsor/Configuration/ComponentExclusionSpecificationSpecs.cs → trunk/product/MyMoney/boot/container/ComponentExclusionSpecificationSpecs.cs
File renamed without changes
trunk/product/MoMoney.Infrastructure/Container/Windsor/Configuration/type_extensions.cs → trunk/product/MyMoney/boot/container/type_extensions.cs
File renamed without changes
trunk/product/MoMoney.Infrastructure/System/ApplicationEnvironment.cs → trunk/product/MyMoney/Presentation/Core/ApplicationEnvironment.cs
@@ -3,13 +3,13 @@ using MoMoney.Infrastructure.Threading;
namespace MoMoney.Infrastructure.System
{
- public interface IApplicationEnvironment
+ public interface IApplication
{
void shut_down();
void restart();
}
- public class ApplicationEnvironment : IApplicationEnvironment
+ public class ApplicationEnvironment : IApplication
{
readonly ICommandProcessor processor;
trunk/product/MyMoney/Presentation/Model/Menu/File/Commands/ExitCommand.cs
@@ -11,11 +11,11 @@ namespace MoMoney.Presentation.Model.Menu.File.Commands
public class ExitCommand : IExitCommand
{
- readonly IApplicationEnvironment application;
+ readonly IApplication application;
readonly IEventAggregator broker;
readonly ISaveChangesCommand command;
- public ExitCommand(IApplicationEnvironment application, IEventAggregator broker, ISaveChangesCommand command)
+ public ExitCommand(IApplication application, IEventAggregator broker, ISaveChangesCommand command)
{
this.application = application;
this.command = command;
trunk/product/MyMoney/Presentation/Model/Menu/File/Commands/ExitCommandSpecs.cs
@@ -16,12 +16,12 @@ namespace MoMoney.Presentation.Model.Menu.File.Commands
context c = () =>
{
- application = the_dependency<IApplicationEnvironment>();
+ application = the_dependency<IApplication>();
broker = the_dependency<IEventAggregator>();
save_changes_command = the_dependency<ISaveChangesCommand>();
};
- protected static IApplicationEnvironment application;
+ protected static IApplication application;
protected static IEventAggregator broker;
protected static ISaveChangesCommand save_changes_command;
}
trunk/product/MyMoney/Presentation/Presenters/Commands/RestartCommand.cs
@@ -11,10 +11,10 @@ namespace MoMoney.Presentation.Presenters.Commands
public class RestartCommand : IRestartCommand
{
- readonly IApplicationEnvironment application;
+ readonly IApplication application;
readonly IEventAggregator broker;
- public RestartCommand(IApplicationEnvironment application, IEventAggregator broker)
+ public RestartCommand(IApplication application, IEventAggregator broker)
{
this.application = application;
this.broker = broker;
trunk/product/MyMoney/MyMoney.csproj
@@ -160,6 +160,10 @@
</Reference>
</ItemGroup>
<ItemGroup>
+ <Compile Include="boot\container\ComponentExclusionSpecification.cs" />
+ <Compile Include="boot\container\ComponentExclusionSpecificationSpecs.cs">
+ <SubType>Form</SubType>
+ </Compile>
<Compile Include="boot\container\registration\auto_wire_components_in_to_the.cs" />
<Compile Include="boot\container\registration\auto_wire_components_in_to_the_specs.cs" />
<Compile Include="boot\container\registration\proxy_configuration\SynchronizedConfiguration.cs" />
@@ -169,10 +173,12 @@
<Compile Include="boot\container\registration\wire_up_the_data_access_components_into_the.cs" />
<Compile Include="boot\container\registration\wire_up_the_presentation_modules.cs" />
<Compile Include="boot\container\registration\wire_up_the_services_in_to_the.cs" />
+ <Compile Include="boot\container\type_extensions.cs" />
<Compile Include="boot\global_error_handling.cs" />
<Compile Include="boot\WindowsFormsApplication.cs" />
<Compile Include="Modules\ApplicationShellModule.cs" />
<Compile Include="Modules\DatabaseModule.cs" />
+ <Compile Include="Presentation\Core\ApplicationEnvironment.cs" />
<Compile Include="Presentation\Core\ContentPresenter.cs" />
<Compile Include="Presentation\Core\IContentPresenter.cs" />
<Compile Include="Presentation\Databindings\date_time_picker_property_binding.cs" />