public void teardown() { Console.WriteLine( " CommandTest.teardown()" ); this.singleCommand = null; this.macroCommand = null; this.macroCommandExtern = null; }
public void startup() { Console.WriteLine( " CommandTest.startup()" ); this.initProperties = new Dictionary<String, Object>() { { "id", 123 }, { "identifier", "user.profile" } }; this.singleCommand = new Command( "test.context" ).Initialize( this.initProperties ) as Command; this.singleCommand.Executed += this.onSingleCommandExecuted;//delegate( Object sender, EventArgs e ) { this.onSingleCommandExecuted( sender, e ); }; this.macroCommand = new MacroCommand( "test.context" ).Initialize( this.initProperties ) as MacroCommand; this.macroCommand.Executed += this.onMacroCommandExecuted;//delegate( Object sender, EventArgs e ) { this.onMacroCommandExecuted( sender, e ); }; this.macroCommandExtern = new MacroCommand( "test.context", new List<ICommand>(){ new Command( "test.context" ), new Command( "test.context" ), new Command( "test.context" ), new Command( "test.context" ) } ).Initialize( this.initProperties ) as MacroCommand; this.macroCommandExtern.Executed += this.onMacroCommandExecuted;//delegate( Object sender, EventArgs e ) { this.onMacroCommandExternExecuted( sender, e ); }; }