 package integration.tests 
 {
+	import ru.whitered.kote.Mediator;
 	import ru.whitered.kote.Command;
 	import ru.whitered.kote.Facade;
 	import ru.whitered.kote.Notification;

			
			assertThat(registry, array(cmd1, cmd3, cmd2));
		}
	}
}

import ru.whitered.kote.Command;




class CustomCommand extends Command
{
	private var name:String;
	
	
	
	public function CustomCommand(name:String) 
	{
		this.name = name;
	}

		return name;
	}
}



class RegistryMediator extends Mediator
{
	private var registry:Array;

	
	
	public function RegistryMediator(registry:Array)
	{
		this.registry = registry;
	}

	
	
	override public function handleNotification(notificationObject:NotificationObject):void 
	{
		super.handleNotification(notificationObject);
		registry.push(this);
	}
}
