summaryrefslogtreecommitdiff
path: root/product/Presentation
diff options
context:
space:
mode:
Diffstat (limited to 'product/Presentation')
-rw-r--r--product/Presentation/Core/ApplicationEnvironment.cs4
-rw-r--r--product/Presentation/Model/Menu/MenuItemBuilder.cs4
-rw-r--r--product/Presentation/Model/Menu/ToolBarItemBuilder.cs4
-rw-r--r--product/Presentation/Presenters/CommandPump.cs6
-rw-r--r--product/Presentation/Presenters/RunPresenterCommand.cs4
-rw-r--r--product/Presentation/Presenters/RunThe.cs4
-rw-r--r--product/Presentation/Presenters/RunTheSpecs.cs4
7 files changed, 14 insertions, 16 deletions
diff --git a/product/Presentation/Core/ApplicationEnvironment.cs b/product/Presentation/Core/ApplicationEnvironment.cs
index b3fcf38..9418efe 100644
--- a/product/Presentation/Core/ApplicationEnvironment.cs
+++ b/product/Presentation/Core/ApplicationEnvironment.cs
@@ -11,9 +11,9 @@ namespace MoMoney.Presentation.Core
public class ApplicationEnvironment : IApplication
{
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
- public ApplicationEnvironment(ICommandProcessor processor)
+ public ApplicationEnvironment(CommandProcessor processor)
{
this.processor = processor;
}
diff --git a/product/Presentation/Model/Menu/MenuItemBuilder.cs b/product/Presentation/Model/Menu/MenuItemBuilder.cs
index b481c75..e87604e 100644
--- a/product/Presentation/Model/Menu/MenuItemBuilder.cs
+++ b/product/Presentation/Model/Menu/MenuItemBuilder.cs
@@ -22,7 +22,7 @@ namespace MoMoney.Presentation.Model.Menu
{
readonly DependencyRegistry registry;
readonly IEventAggregator aggregator;
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
string name_of_the_menu { get; set; }
Action command_to_execute { get; set; }
@@ -30,7 +30,7 @@ namespace MoMoney.Presentation.Model.Menu
ShortcutKey key { get; set; }
Func<bool> can_be_clicked = () => true;
- public MenuItemBuilder(DependencyRegistry registry, IEventAggregator aggregator, ICommandProcessor processor)
+ public MenuItemBuilder(DependencyRegistry registry, IEventAggregator aggregator, CommandProcessor processor)
{
name_of_the_menu = "Unknown";
command_to_execute = () => {};
diff --git a/product/Presentation/Model/Menu/ToolBarItemBuilder.cs b/product/Presentation/Model/Menu/ToolBarItemBuilder.cs
index 2558453..daf2bc2 100644
--- a/product/Presentation/Model/Menu/ToolBarItemBuilder.cs
+++ b/product/Presentation/Model/Menu/ToolBarItemBuilder.cs
@@ -11,10 +11,10 @@ namespace MoMoney.Presentation.Model.Menu
{
readonly DependencyRegistry registry;
readonly ToolStripButton item;
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
Func<bool> the_condition;
- public ToolBarItemBuilder(DependencyRegistry registry, IEventAggregator aggregator, ICommandProcessor processor)
+ public ToolBarItemBuilder(DependencyRegistry registry, IEventAggregator aggregator, CommandProcessor processor)
{
this.registry = registry;
this.processor = processor;
diff --git a/product/Presentation/Presenters/CommandPump.cs b/product/Presentation/Presenters/CommandPump.cs
index 450a2b6..bc63414 100644
--- a/product/Presentation/Presenters/CommandPump.cs
+++ b/product/Presentation/Presenters/CommandPump.cs
@@ -7,19 +7,17 @@ namespace MoMoney.Presentation.Presenters
public interface ICommandPump
{
ICommandPump run<Command>() where Command : gorilla.commons.utility.Command;
- ICommandPump run<Command>(Command command) where Command : gorilla.commons.utility.Command;
ICommandPump run<Command, T>(T input) where Command : ParameterizedCommand<T>;
- ICommandPump run<T>(Callback<T> item, Query<T> query);
ICommandPump run<Output, Query>(Callback<Output> item) where Query : Query<Output>;
}
public class CommandPump : ICommandPump
{
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
readonly DependencyRegistry registry;
readonly ICommandFactory factory;
- public CommandPump(ICommandProcessor processor, DependencyRegistry registry, ICommandFactory factory)
+ public CommandPump(CommandProcessor processor, DependencyRegistry registry, ICommandFactory factory)
{
this.processor = processor;
this.factory = factory;
diff --git a/product/Presentation/Presenters/RunPresenterCommand.cs b/product/Presentation/Presenters/RunPresenterCommand.cs
index b90f856..7e5fe1e 100644
--- a/product/Presentation/Presenters/RunPresenterCommand.cs
+++ b/product/Presentation/Presenters/RunPresenterCommand.cs
@@ -6,9 +6,9 @@ namespace MoMoney.Presentation.Presenters
public class RunPresenterCommand : IRunPresenterCommand
{
readonly IApplicationController application_controller;
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
- public RunPresenterCommand(IApplicationController application_controller, ICommandProcessor processor)
+ public RunPresenterCommand(IApplicationController application_controller, CommandProcessor processor)
{
this.application_controller = application_controller;
this.processor = processor;
diff --git a/product/Presentation/Presenters/RunThe.cs b/product/Presentation/Presenters/RunThe.cs
index 547d1a2..1ce2f11 100644
--- a/product/Presentation/Presenters/RunThe.cs
+++ b/product/Presentation/Presenters/RunThe.cs
@@ -9,9 +9,9 @@ namespace momoney.presentation.presenters
public class RunThe<TPresenter> : IRunThe<TPresenter> where TPresenter : IPresenter
{
readonly IApplicationController controller;
- readonly ICommandProcessor processor;
+ readonly CommandProcessor processor;
- public RunThe(IApplicationController controller, ICommandProcessor processor)
+ public RunThe(IApplicationController controller, CommandProcessor processor)
{
this.controller = controller;
this.processor = processor;
diff --git a/product/Presentation/Presenters/RunTheSpecs.cs b/product/Presentation/Presenters/RunTheSpecs.cs
index 2781387..9a4fb42 100644
--- a/product/Presentation/Presenters/RunTheSpecs.cs
+++ b/product/Presentation/Presenters/RunTheSpecs.cs
@@ -19,13 +19,13 @@ namespace momoney.presentation.presenters
context c = () =>
{
controller = the_dependency<IApplicationController>();
- processor = the_dependency<ICommandProcessor>();
+ processor = the_dependency<CommandProcessor>();
};
because b = () => sut.run();
static IApplicationController controller;
- static ICommandProcessor processor;
+ static CommandProcessor processor;
}
}
} \ No newline at end of file